Skip to content

Commit 1dd719a

Browse files
author
Per Kops
committed
test: update tests to work with latest xunit version
1 parent 3777d22 commit 1dd719a

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
global using Atc.CodingRules.AnalyzerProviders.Providers;
2-
global using Atc.XUnit;
3-
4-
global using Microsoft.Extensions.Logging.Abstractions;
5-
6-
global using Xunit;
2+
global using Microsoft.Extensions.Logging.Abstractions;

test/Atc.CodingRules.Updater.Tests/EditorConfigHelperTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
// ReSharper disable ReturnTypeCanBeEnumerable.Local
22
namespace Atc.CodingRules.Updater.Tests;
33

4-
public class EditorConfigHelperTests
4+
public sealed class EditorConfigHelperTests
55
{
66
private static readonly string WorkingDirectory = Path.Combine(Path.GetTempPath(), "atc-coding-rules-updater-editorconfig-test");
77
private readonly FileInfo[] testFiles = CollectTestFiles();
88

99
private readonly ITestOutputHelper testOutput;
1010

1111
public EditorConfigHelperTests(ITestOutputHelper testOutput)
12-
{
13-
this.testOutput = testOutput;
14-
}
12+
=> this.testOutput = testOutput;
1513

1614
[Fact]
1715
public void DotNet6_Root_Update1()
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
global using System.Reflection;
2-
global using Xunit.Abstractions;
1+
global using System.Reflection;

test/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Atc.Test" Version="2.0.16" />
17+
<PackageReference Include="Atc.XUnit" Version="3.0.12" />
1718
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.17" />
1819
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1920
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" />
2021
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.0.2" />
2122
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.0" />
23+
<PackageReference Include="Neovolve.Logging.Xunit.v3" Version="7.2.0" />
2224
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2325
<PrivateAssets>all</PrivateAssets>
2426
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -27,11 +29,13 @@
2729

2830
<ItemGroup>
2931
<Using Include="Atc.Test" />
32+
<Using Include="Atc.XUnit" />
3033
<Using Include="AutoFixture" />
3134
<Using Include="AutoFixture.Xunit3" />
3235
<Using Include="FluentAssertions" />
3336
<Using Include="NSubstitute" />
3437
<Using Include="Xunit" />
38+
<Using Include="Neovolve.Logging.Xunit" />
3539
</ItemGroup>
3640

3741
</Project>

0 commit comments

Comments
 (0)