From f813f43cdbad4ff340a43aa44138680d65847eea Mon Sep 17 00:00:00 2001 From: jburnett Date: Sat, 8 Mar 2025 15:14:02 -0500 Subject: [PATCH 1/3] Upgrade xunit runner version --- common.test.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.test.props b/common.test.props index f64fe3e..2acd7b9 100644 --- a/common.test.props +++ b/common.test.props @@ -11,7 +11,7 @@ - + From 77a07268050ffd1540cc1b5ae407b321a136adb4 Mon Sep 17 00:00:00 2001 From: jburnett Date: Sat, 8 Mar 2025 15:14:31 -0500 Subject: [PATCH 2/3] Upgrade FluentAssertions w/method name changes --- Test.AMT.Extensions.Linq/IntListRandomizerTests.cs | 12 ++++++------ common.test.props | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Test.AMT.Extensions.Linq/IntListRandomizerTests.cs b/Test.AMT.Extensions.Linq/IntListRandomizerTests.cs index 3079440..87a2a47 100644 --- a/Test.AMT.Extensions.Linq/IntListRandomizerTests.cs +++ b/Test.AMT.Extensions.Linq/IntListRandomizerTests.cs @@ -32,11 +32,11 @@ public void random_element_from_int_list() { // Test via the method taking ICollection int curr = _testData.TestList.Random(); - curr.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue); + curr.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue); // Test via the method taking IEnumerable curr = enr.Random(); - curr.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue); + curr.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue); } } @@ -75,12 +75,12 @@ public void random_element_from_Dictionary() { // Test via the method taking ICollection var curr = dict.Random(); - curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue); + curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue); curr.Value.Should().BeEquivalentTo(curr.Key.ToString()); // Test via the method taking IEnumerable curr = enr.Random(); - curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue); + curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue); curr.Value.Should().BeEquivalentTo(curr.Key.ToString()); } } @@ -98,12 +98,12 @@ public void random_element_from_SortedList() { // Test via the method taking ICollection var curr = list.Random(); - curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue); + curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue); curr.Value.Should().BeEquivalentTo(curr.Key.ToString()); // Test via the method taking IEnumerable curr = enr.Random(); - curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue); + curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue); curr.Value.Should().BeEquivalentTo(curr.Key.ToString()); } } diff --git a/common.test.props b/common.test.props index 2acd7b9..13715fa 100644 --- a/common.test.props +++ b/common.test.props @@ -12,7 +12,7 @@ - + From a4a68b7166edd274b4abb7676a4816d76fbb28c7 Mon Sep 17 00:00:00 2001 From: jburnett Date: Sat, 8 Mar 2025 15:20:36 -0500 Subject: [PATCH 3/3] Upgrade workflow to use net9.0 --- .github/workflows/dotnet-core.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 9c4265f..c26baeb 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -18,14 +18,16 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup .NET 8.0 - uses: actions/setup-dotnet@v1 + - name: Setup .NET 9.0 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.* + dotnet-version: 9.0.* - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration ${{ matrix.build-config }} --no-restore - name: Test - run: dotnet test --configuration ${{ matrix.build-config }} --no-restore --verbosity normal ./Test.AMT.Extensions.System/Test.AMT.Extensions.System.csproj + run: | + dotnet test --configuration ${{ matrix.build-config }} --no-restore --verbosity normal ./Test.AMT.Extensions.System/Test.AMT.Extensions.System.csproj + dotnet test --configuration ${{ matrix.build-config }} --no-restore --verbosity normal ./Test.AMT.Extensions.Linq/Test.AMT.Extensions.Linq.csproj # NOTE: does not test /Test.AMT.Extensions.Logging at GitHub b/c fails w/IP port comms.