Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
12 changes: 6 additions & 6 deletions Test.AMT.Extensions.Linq/IntListRandomizerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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());
}
}
Expand All @@ -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());
}
}
Expand Down
4 changes: 2 additions & 2 deletions common.test.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
<PackageReference Include="FluentAssertions" Version="6.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.*" />
<PackageReference Include="FluentAssertions" Version="8.*" />
</ItemGroup>


Expand Down