Skip to content

Commit fbc717b

Browse files
authored
Merge pull request #302 from Lombiq/issue/OSOE-935
OSOE-935: Migrating test project to xUnit v3
2 parents 3298019 + 6b8c760 commit fbc717b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Lombiq.HelpfulLibraries.Tests/Lombiq.HelpfulLibraries.Tests.csproj

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5+
<OutputType>Exe</OutputType>
56
</PropertyGroup>
67

78
<PropertyGroup>
@@ -16,8 +17,9 @@
1617
</Target>
1718

1819
<ItemGroup>
19-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
21+
<PackageReference Include="xunit.v3" Version="1.0.1" />
22+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
2123
<PrivateAssets>all</PrivateAssets>
2224
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2325
</PackageReference>

Lombiq.HelpfulLibraries.Tests/UnitTests/Services/ManualConnectingIndexServiceFixture.cs

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System;
88
using System.Collections.Generic;
99
using System.Data;
10+
using System.Diagnostics.CodeAnalysis;
1011
using System.Globalization;
1112
using System.IO;
1213
using System.Linq;
@@ -54,6 +55,10 @@ public async Task SessionAsync(Func<ISession, Task> action)
5455
// after a test execution.
5556
public void Dispose() => Store?.Dispose();
5657

58+
[SuppressMessage(
59+
"Usage",
60+
"MA0040:Forward the CancellationToken parameter to methods that take one",
61+
Justification = "This is just a stub, no need to support cancellation.")]
5762
private async Task CreateDatabaseAsync()
5863
{
5964
if (File.Exists(FileName)) File.Delete(FileName);

0 commit comments

Comments
 (0)