Skip to content

Commit d879ccb

Browse files
committed
Upgrade xunit to v3
1 parent 7c92117 commit d879ccb

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

tests/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
11-
<PackageReference Include="xunit" Version="2.9.3" />
11+
<PackageReference Include="xunit.v3" Version="1.1.0" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Runtime.InteropServices;
2+
using OpenGost.Security.Cryptography.Tests.XunitExtensions;
23

34
[assembly: ComVisible(false)]
45
[assembly: Guid("49680671-0348-43b3-8684-fc744c738f0c")]
5-
[assembly: TestFramework(
6-
"OpenGost.Security.Cryptography.Tests.XunitExtensions.XunitTestFrameworkWithAssemblyFixture",
7-
"OpenGost.Security.Cryptography.Tests")]
6+
[assembly: AssemblyFixture(typeof(ConfigureCryptographicServicesAssemblyFixture))]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Diagnostics.CodeAnalysis;
2+
3+
namespace OpenGost.Security.Cryptography.Tests.XunitExtensions;
4+
5+
[ExcludeFromCodeCoverage]
6+
public class ConfigureCryptographicServicesAssemblyFixture
7+
{
8+
public ConfigureCryptographicServicesAssemblyFixture()
9+
{
10+
OpenGostCryptoConfig.ConfigureCryptographicServices();
11+
}
12+
}

tests/OpenGost.Security.Cryptography.Tests/XunitExtensions/XunitTestFrameworkWithAssemblyFixture.cs

-15
This file was deleted.

0 commit comments

Comments
 (0)