Skip to content

Commit 2665595

Browse files
jburnettjburnett
andauthored
Upgrade Xunit runner & fluentassertions (#26)
* Upgrade xunit runner version * Upgrade FluentAssertions w/method name changes * Upgrade workflow to use net9.0 --------- Co-authored-by: jburnett <[email protected]>
1 parent e6333a2 commit 2665595

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21-
- name: Setup .NET 8.0
22-
uses: actions/setup-dotnet@v1
21+
- name: Setup .NET 9.0
22+
uses: actions/setup-dotnet@v4
2323
with:
24-
dotnet-version: 8.0.*
24+
dotnet-version: 9.0.*
2525
- name: Install dependencies
2626
run: dotnet restore
2727
- name: Build
2828
run: dotnet build --configuration ${{ matrix.build-config }} --no-restore
2929
- name: Test
30-
run: dotnet test --configuration ${{ matrix.build-config }} --no-restore --verbosity normal ./Test.AMT.Extensions.System/Test.AMT.Extensions.System.csproj
30+
run: |
31+
dotnet test --configuration ${{ matrix.build-config }} --no-restore --verbosity normal ./Test.AMT.Extensions.System/Test.AMT.Extensions.System.csproj
32+
dotnet test --configuration ${{ matrix.build-config }} --no-restore --verbosity normal ./Test.AMT.Extensions.Linq/Test.AMT.Extensions.Linq.csproj
3133
# NOTE: does not test /Test.AMT.Extensions.Logging at GitHub b/c fails w/IP port comms.

Test.AMT.Extensions.Linq/IntListRandomizerTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public void random_element_from_int_list()
3232
{
3333
// Test via the method taking ICollection
3434
int curr = _testData.TestList.Random();
35-
curr.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue);
35+
curr.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue);
3636

3737
// Test via the method taking IEnumerable
3838
curr = enr.Random();
39-
curr.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue);
39+
curr.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue);
4040
}
4141
}
4242

@@ -75,12 +75,12 @@ public void random_element_from_Dictionary()
7575
{
7676
// Test via the method taking ICollection
7777
var curr = dict.Random();
78-
curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue);
78+
curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue);
7979
curr.Value.Should().BeEquivalentTo(curr.Key.ToString());
8080

8181
// Test via the method taking IEnumerable
8282
curr = enr.Random();
83-
curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue);
83+
curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue);
8484
curr.Value.Should().BeEquivalentTo(curr.Key.ToString());
8585
}
8686
}
@@ -98,12 +98,12 @@ public void random_element_from_SortedList()
9898
{
9999
// Test via the method taking ICollection
100100
var curr = list.Random();
101-
curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue);
101+
curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue);
102102
curr.Value.Should().BeEquivalentTo(curr.Key.ToString());
103103

104104
// Test via the method taking IEnumerable
105105
curr = enr.Random();
106-
curr.Key.Should().BeGreaterOrEqualTo(IntListTestFixture.MinTestValue);
106+
curr.Key.Should().BeGreaterThanOrEqualTo(IntListTestFixture.MinTestValue);
107107
curr.Value.Should().BeEquivalentTo(curr.Key.ToString());
108108
}
109109
}

common.test.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
1313
<PackageReference Include="xunit" Version="2.*" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
15-
<PackageReference Include="FluentAssertions" Version="6.*" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="3.*" />
15+
<PackageReference Include="FluentAssertions" Version="8.*" />
1616
</ItemGroup>
1717

1818

0 commit comments

Comments
 (0)