From c18d5fb8a2eed4369e7867c7439d31ac8f8ccf1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 08:23:04 +0000 Subject: [PATCH 1/2] Bump NUnit from 3.14.0 to 4.0.0 Bumps [NUnit](https://github.com/nunit/nunit) from 3.14.0 to 4.0.0. - [Release notes](https://github.com/nunit/nunit/releases) - [Changelog](https://github.com/nunit/nunit/blob/master/CHANGES.md) - [Commits](https://github.com/nunit/nunit/compare/v3.14.0...v4.0.0) --- updated-dependencies: - dependency-name: NUnit dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Duffel.ApiClient.Tests/Duffel.ApiClient.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duffel.ApiClient.Tests/Duffel.ApiClient.Tests.csproj b/Duffel.ApiClient.Tests/Duffel.ApiClient.Tests.csproj index 7fa0801..2f2472a 100644 --- a/Duffel.ApiClient.Tests/Duffel.ApiClient.Tests.csproj +++ b/Duffel.ApiClient.Tests/Duffel.ApiClient.Tests.csproj @@ -12,7 +12,7 @@ - + From a9a5769fc7f01b1c92ca943d8ddfb3156bfeb2da Mon Sep 17 00:00:00 2001 From: Sam Hutchings Date: Mon, 27 Nov 2023 15:43:06 +0000 Subject: [PATCH 2/2] fix --- Duffel.ApiClient.Tests/ApiClientTests.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Duffel.ApiClient.Tests/ApiClientTests.cs b/Duffel.ApiClient.Tests/ApiClientTests.cs index 87e3ff5..f6f0169 100644 --- a/Duffel.ApiClient.Tests/ApiClientTests.cs +++ b/Duffel.ApiClient.Tests/ApiClientTests.cs @@ -1,24 +1,28 @@ -using NFluent; -using NUnit.Framework; - namespace Duffel.ApiClient.Tests { using System; + using NUnit.Framework; public class DuffelApiClientTests { [Test] public void ThrowsArgumentExceptionIfAccessTokenIsEmpty() { - var exception = Assert.Catch(() => new DuffelApiClient(String.Empty)); - Assert.AreEqual("No access token provided. To create an access token, head to your dashboard at https://app.duffel.com/duffel/tokens and generate a token. (Parameter 'accessToken')", exception?.Message); + var exception = Assert.Catch(() => new DuffelApiClient(string.Empty)); + Assert.That( + "No access token provided. To create an access token, head to your dashboard at https://app.duffel.com/duffel/tokens and generate a token. (Parameter 'accessToken')", + Is.EqualTo(exception?.Message) + ); } [Test] public void ThrowsArgumentExceptionIfAccessTokenIsNull() { var exception = Assert.Catch(() => new DuffelApiClient(null)); - Assert.AreEqual("No access token provided. To create an access token, head to your dashboard at https://app.duffel.com/duffel/tokens and generate a token. (Parameter 'accessToken')", exception?.Message); + Assert.That( + "No access token provided. To create an access token, head to your dashboard at https://app.duffel.com/duffel/tokens and generate a token. (Parameter 'accessToken')", + Is.EqualTo(exception?.Message) + ); } } -} +} \ No newline at end of file