Skip to content

Commit

Permalink
Update to xUnit v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Dec 27, 2024
1 parent a0b846e commit 5ace4f3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="xunit.v3" Version="1.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="xunit.v3" Version="1.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>

Expand Down
12 changes: 6 additions & 6 deletions tests/BlurHashSharp.Tests/AbsMaxExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,29 @@ public void AbsMaxFallback_Valid_AbsMax(float[] array, float expected)
Assert.Equal(expected, AbsMaxExtensions.AbsMaxFallback(array));
}

[SkippableTheory]
[Theory]
[MemberData(nameof(TestArrays))]
public void AbsMaxAvx_Valid_AbsMax(float[] array, float expected)
{
Skip.IfNot(Avx.IsSupported);
Assert.SkipUnless(Avx.IsSupported, "Test host doesn't support AVX");

Assert.Equal(expected, AbsMaxExtensions.AbsMaxAvx(array));
}

[SkippableTheory]
[Theory]
[MemberData(nameof(TestArrays))]
public void AbsMaxSse_Valid_AbsMax(float[] array, float expected)
{
Skip.IfNot(Sse.IsSupported);
Assert.SkipUnless(Sse.IsSupported, "Test host doesn't support SSE");

Assert.Equal(expected, AbsMaxExtensions.AbsMaxSse(array));
}

[SkippableTheory]
[Theory]
[MemberData(nameof(TestArrays))]
public void AbsMaxAdvSimd_Valid_AbsMax(float[] array, float expected)
{
Skip.IfNot(AdvSimd.Arm64.IsSupported);
Assert.SkipUnless(AdvSimd.Arm64.IsSupported, "Test host doesn't support NEON");

Assert.Equal(expected, AbsMaxExtensions.AbsMaxAdvSimd64(array));
}
Expand Down
5 changes: 2 additions & 3 deletions tests/BlurHashSharp.Tests/BlurHashSharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="Xunit.SkippableFact" Version="1.5.23" />
<PackageReference Include="xunit.v3" Version="1.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>

Expand Down

0 comments on commit 5ace4f3

Please sign in to comment.