Skip to content

Commit

Permalink
Bump test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Nov 10, 2024
1 parent 3022457 commit 383c031
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions tests/AoCHelper.Test/AoCHelper.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" PrivateAssets="All" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" PrivateAssets="All" />
<PackageReference Include="coverlet.collector" Version="6.0.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -25,6 +25,10 @@
<ProjectReference Include="..\..\src\AoCHelper.PoC\AoCHelper.PoC.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
</ItemGroup>

<PropertyGroup>
<NoWarn>S2699</NoWarn>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions tests/AoCHelper.Test/SolverTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public async Task ShouldNotThrowExceptionIfCantSolve()
[Fact]
public void LoadAllProblems()
{
Assert.Equal(
Xunit.Assert.Equal(
Assembly.GetExecutingAssembly()!.GetTypes().Count(type => typeof(BaseProblem).IsAssignableFrom(type) && !type.IsAbstract),
Solver.LoadAllProblems([Assembly.GetExecutingAssembly()]).Count());
}
Expand All @@ -145,7 +145,7 @@ public void LoadAllProblems_OrderedByFullName()

foreach (var (First, Second) in orderedTypes.Zip(types))
{
Assert.Equal(First, Second);
Xunit.Assert.Equal(First, Second);
}
}
}
Expand Down

0 comments on commit 383c031

Please sign in to comment.