From 6c415bd137355500bd5bb99bcef78a96fd7b38a4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:57:12 +0000 Subject: [PATCH 1/2] Bump NUnit from 3.14.0 to 4.1.0 in /src Bumps [NUnit](https://github.com/nunit/nunit) from 3.14.0 to 4.1.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...4.1.0) --- updated-dependencies: - dependency-name: NUnit dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .../GitReleaseManager.Core.Tests.csproj | 70 +++++++++---------- .../GitReleaseManager.IntegrationTests.csproj | 70 +++++++++---------- .../GitReleaseManager.Tests.csproj | 68 +++++++++--------- 3 files changed, 104 insertions(+), 104 deletions(-) diff --git a/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj b/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj index 9c04e0c4..92fcbc9b 100644 --- a/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj +++ b/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj @@ -1,36 +1,36 @@ - - - 8.0 - net6.0;net7.0 - GitReleaseManager.Core.Tests - Test Project for GitReleaseManager.Core - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - + + + 8.0 + net6.0;net7.0 + GitReleaseManager.Core.Tests + Test Project for GitReleaseManager.Core + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj b/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj index 02b3fc05..ff5ce1c9 100644 --- a/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj +++ b/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj @@ -1,36 +1,36 @@ - - - 8.0 - net6.0;net7.0 - GitReleaseManager.IntegrationTests - Integration Test Project for GitReleaseManager - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - all - runtime; build; native; contentfiles; analyzers - - - - - - - - + + + 8.0 + net6.0;net7.0 + GitReleaseManager.IntegrationTests + Integration Test Project for GitReleaseManager + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj b/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj index 50f33177..e539e268 100644 --- a/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj +++ b/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj @@ -1,35 +1,35 @@ - - - 8.0 - net6.0;net7.0 - GitReleaseManager.Tests - Test Project for GitReleaseManager - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - all - runtime; build; native; contentfiles; analyzers - - - - + + + 8.0 + net6.0;net7.0 + GitReleaseManager.Tests + Test Project for GitReleaseManager + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + all + runtime; build; native; contentfiles; analyzers + + + + \ No newline at end of file From 1625a520c0dbdf7588b584398a8e947ad615e372 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 10 Jul 2024 11:06:51 +0100 Subject: [PATCH 2/2] (test) Remove usage of Assert.AreEqual This no longer exists in NUnit 4.x. --- .../GitReleaseManager.Core.Tests.csproj | 70 +++++++++---------- .../GitReleaseManager.IntegrationTests.csproj | 70 +++++++++---------- .../ConfigurationTests.cs | 14 ++-- .../GitReleaseManager.Tests.csproj | 68 +++++++++--------- 4 files changed, 111 insertions(+), 111 deletions(-) diff --git a/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj b/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj index 92fcbc9b..c12da586 100644 --- a/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj +++ b/src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj @@ -1,36 +1,36 @@ - - - 8.0 - net6.0;net7.0 - GitReleaseManager.Core.Tests - Test Project for GitReleaseManager.Core - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - + + + 8.0 + net6.0;net7.0 + GitReleaseManager.Core.Tests + Test Project for GitReleaseManager.Core + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj b/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj index ff5ce1c9..ffcbca22 100644 --- a/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj +++ b/src/GitReleaseManager.IntegrationTests/GitReleaseManager.IntegrationTests.csproj @@ -1,36 +1,36 @@ - - - 8.0 - net6.0;net7.0 - GitReleaseManager.IntegrationTests - Integration Test Project for GitReleaseManager - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - all - runtime; build; native; contentfiles; analyzers - - - - - - - - + + + 8.0 + net6.0;net7.0 + GitReleaseManager.IntegrationTests + Integration Test Project for GitReleaseManager + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + + + \ No newline at end of file diff --git a/src/GitReleaseManager.Tests/ConfigurationTests.cs b/src/GitReleaseManager.Tests/ConfigurationTests.cs index e4112a5c..4ebfc358 100644 --- a/src/GitReleaseManager.Tests/ConfigurationTests.cs +++ b/src/GitReleaseManager.Tests/ConfigurationTests.cs @@ -20,13 +20,13 @@ public void Should_Read_Label_Aliases() var config = ConfigSerializer.Read(stringReader); // Then - Assert.AreEqual(2, config.LabelAliases.Count); - Assert.AreEqual("Bug", config.LabelAliases[0].Name); - Assert.AreEqual("Foo", config.LabelAliases[0].Header); - Assert.AreEqual("Bar", config.LabelAliases[0].Plural); - Assert.AreEqual("Improvement", config.LabelAliases[1].Name); - Assert.AreEqual("Baz", config.LabelAliases[1].Header); - Assert.AreEqual("Qux", config.LabelAliases[1].Plural); + Assert.That(2, Is.EqualTo(config.LabelAliases.Count)); + Assert.That("Bug", Is.EqualTo(config.LabelAliases[0].Name)); + Assert.That("Foo", Is.EqualTo(config.LabelAliases[0].Header)); + Assert.That("Bar", Is.EqualTo(config.LabelAliases[0].Plural)); + Assert.That("Improvement", Is.EqualTo(config.LabelAliases[1].Name)); + Assert.That("Baz", Is.EqualTo(config.LabelAliases[1].Header)); + Assert.That("Qux", Is.EqualTo(config.LabelAliases[1].Plural)); } } diff --git a/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj b/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj index e539e268..71d2b2da 100644 --- a/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj +++ b/src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj @@ -1,35 +1,35 @@ - - - 8.0 - net6.0;net7.0 - GitReleaseManager.Tests - Test Project for GitReleaseManager - $(NoWarn);CA1707;Serilog004; - - - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - all - runtime; build; native; contentfiles; analyzers - - - - + + + 8.0 + net6.0;net7.0 + GitReleaseManager.Tests + Test Project for GitReleaseManager + $(NoWarn);CA1707;Serilog004; + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + all + runtime; build; native; contentfiles; analyzers + + + + \ No newline at end of file