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. 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 f64fe3e..13715fa 100644 --- a/common.test.props +++ b/common.test.props @@ -11,8 +11,8 @@ - - + +