From 383c031d1ff4c8c923925fc71c21526959a7a07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20C=C3=A1ceres?= Date: Sun, 10 Nov 2024 22:44:45 +0100 Subject: [PATCH] Bump test dependencies --- tests/AoCHelper.Test/AoCHelper.Test.csproj | 16 ++++++++++------ tests/AoCHelper.Test/SolverTest.cs | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/AoCHelper.Test/AoCHelper.Test.csproj b/tests/AoCHelper.Test/AoCHelper.Test.csproj index e917e22..e32b813 100644 --- a/tests/AoCHelper.Test/AoCHelper.Test.csproj +++ b/tests/AoCHelper.Test/AoCHelper.Test.csproj @@ -1,4 +1,4 @@ - + net8.0 @@ -6,14 +6,14 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -25,6 +25,10 @@ + + + + S2699 diff --git a/tests/AoCHelper.Test/SolverTest.cs b/tests/AoCHelper.Test/SolverTest.cs index 2d09cd9..8d9ea39 100644 --- a/tests/AoCHelper.Test/SolverTest.cs +++ b/tests/AoCHelper.Test/SolverTest.cs @@ -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()); } @@ -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); } } }