Skip to content

Commit

Permalink
Update to stable xunit v3
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Dec 29, 2024
1 parent 8fd5d5e commit e292c56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions SteamKit2/Tests/DebugLogFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ public void WriteLine( string category, string msg )

class DebugLogSetupTeardownAttribute : BeforeAfterTestAttribute
{
public override ValueTask Before( System.Reflection.MethodInfo methodUnderTest, IXunitTest test )
public override void Before( System.Reflection.MethodInfo methodUnderTest, IXunitTest test )
{
DebugLog.ClearListeners();
return ValueTask.CompletedTask;
}

public override ValueTask After( System.Reflection.MethodInfo methodUnderTest, IXunitTest test )
public override void After( System.Reflection.MethodInfo methodUnderTest, IXunitTest test )
{
DebugLog.Enabled = false;
DebugLog.ClearListeners();
return ValueTask.CompletedTask;
}
}

Expand Down
6 changes: 3 additions & 3 deletions SteamKit2/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit.analyzers" Version="1.17.0">
<PackageReference Include="xunit.analyzers" Version="1.18.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0-pre.49">
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.v3" Version="0.6.0-pre.7" />
<PackageReference Include="xunit.v3" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit e292c56

Please sign in to comment.