Skip to content

Commit a857ada

Browse files
Use Microsoft Testing Platform
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
1 parent 169a0a0 commit a857ada

28 files changed

+51
-120
lines changed

ArchUnit.sln

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
23
# Visual Studio 15
34
VisualStudioVersion = 15.0.26430.16
45
MinimumVisualStudioVersion = 10.0.40219.1
@@ -36,8 +37,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FilteredDirectoryLoaderTest
3637
EndProject
3738
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchUnitNET.xUnitV3", "ArchUnitNET.xUnitV3\ArchUnitNET.xUnitV3.csproj", "{5DE11135-0C27-41B4-BC34-9CB17BF335A7}"
3839
EndProject
39-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchUnitNET.xUnitTests", "ArchUnitNET.xUnitTests\ArchUnitNET.xUnitTests.csproj", "{E226D0D5-E50A-4E9C-A30F-F4747299D614}"
40-
EndProject
4140
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchUnitNET.xUnitV3Tests", "ArchUnitNET.xUnitV3Tests\ArchUnitNET.xUnitV3Tests.csproj", "{439E00CE-5CB8-4474-9A27-3FFC5770DB7C}"
4241
EndProject
4342
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchUnitNET.TUnit", "ArchUnitNET.TUnit\ArchUnitNET.TUnit.csproj", "{AD4D9490-F6F1-47DC-9F52-FD15497CDE55}"
@@ -118,10 +117,6 @@ Global
118117
{5DE11135-0C27-41B4-BC34-9CB17BF335A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
119118
{5DE11135-0C27-41B4-BC34-9CB17BF335A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
120119
{5DE11135-0C27-41B4-BC34-9CB17BF335A7}.Release|Any CPU.Build.0 = Release|Any CPU
121-
{E226D0D5-E50A-4E9C-A30F-F4747299D614}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
122-
{E226D0D5-E50A-4E9C-A30F-F4747299D614}.Debug|Any CPU.Build.0 = Debug|Any CPU
123-
{E226D0D5-E50A-4E9C-A30F-F4747299D614}.Release|Any CPU.ActiveCfg = Release|Any CPU
124-
{E226D0D5-E50A-4E9C-A30F-F4747299D614}.Release|Any CPU.Build.0 = Release|Any CPU
125120
{439E00CE-5CB8-4474-9A27-3FFC5770DB7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
126121
{439E00CE-5CB8-4474-9A27-3FFC5770DB7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
127122
{439E00CE-5CB8-4474-9A27-3FFC5770DB7C}.Release|Any CPU.ActiveCfg = Release|Any CPU

ArchUnitNET.MSTestV2Tests/ArchUnitNET.MSTestV2Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<IsPackable>false</IsPackable>
55
<Company>TNG Technology Consulting GmbH</Company>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
7+
<EnableMSTestRunner>true</EnableMSTestRunner>
8+
<OutputType>Exe</OutputType>
79
</PropertyGroup>
810
<ItemGroup>
911
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />

ArchUnitNET.NUnitTests/ArchUnitNET.NUnitTests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<IsPackable>false</IsPackable>
55
<Company>TNG Technology Consulting GmbH</Company>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
7+
<EnableNUnitRunner>true</EnableNUnitRunner>
8+
<OutputType>Exe</OutputType>
79
</PropertyGroup>
810
<ItemGroup>
911
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />

ArchUnitNET.xUnitTests/ArchUnitNET.xUnitTests.csproj

Lines changed: 0 additions & 16 deletions
This file was deleted.

ArchUnitNET.xUnitTests/RuleEvaluationTests.cs

Lines changed: 0 additions & 66 deletions
This file was deleted.

ArchUnitNETTests/ArchUnitNET/Storage/FrozenRules.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<FrozenRules>
3-
<FrozenRule ArchRule="Types that are &quot;ArchUnitNETTests.Fluent.FreezeTests+Violation&quot; or &quot;ArchUnitNETTests.Fluent.FreezeTests+Violation2&quot; should be public">
4-
<Violation>ArchUnitNETTests.Fluent.FreezeTests+Violation</Violation>
5-
</FrozenRule>
6-
<FrozenRule ArchRule="Slices matching &quot;TestAssembly.Slices.(*)..&quot; should not depend on each other" />
73
<FrozenRule ArchRule="Types that are &quot;ArchUnitNETTests.Fluent.FreezeTests+Violation&quot; or &quot;ArchUnitNETTests.Fluent.FreezeTests+Violation2&quot; should not be private">
84
<Violation>ArchUnitNETTests.Fluent.FreezeTests+Violation</Violation>
95
<Violation>ArchUnitNETTests.Fluent.FreezeTests+Violation2</Violation>
@@ -19,4 +15,8 @@
1915
<Violation>Slice1</Violation>
2016
<Violation>Slice1.Service</Violation>
2117
</FrozenRule>
22-
</FrozenRules>
18+
<FrozenRule ArchRule="Types that are &quot;ArchUnitNETTests.Fluent.FreezeTests+Violation&quot; or &quot;ArchUnitNETTests.Fluent.FreezeTests+Violation2&quot; should be public">
19+
<Violation>ArchUnitNETTests.Fluent.FreezeTests+Violation</Violation>
20+
</FrozenRule>
21+
<FrozenRule ArchRule="Slices matching &quot;TestAssembly.Slices.(*)..&quot; should not depend on each other" />
22+
</FrozenRules>

ArchUnitNETTests/ArchUnitNETTests.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<Company>TNG Technology Consulting GmbH</Company>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<OutputType>Exe</OutputType>
89
</PropertyGroup>
910
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
1011
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
1112
</PropertyGroup>
1213
<ItemGroup>
13-
<ProjectReference Include="..\ArchUnitNET.xUnit\ArchUnitNET.xUnit.csproj" />
14+
<ProjectReference Include="..\ArchUnitNET.xUnitV3\ArchUnitNET.xUnitV3.csproj" />
1415
<ProjectReference Include="..\TestAssemblies\InterfaceAssembly\InterfaceAssembly.csproj" />
1516
<ProjectReference Include="..\TestAssembly\TestAssembly.csproj" />
1617
<ProjectReference Include="..\TestAssemblies\AttributeAssembly\AttributeAssembly.csproj" />
@@ -35,8 +36,8 @@
3536
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3637
<PrivateAssets>all</PrivateAssets>
3738
</PackageReference>
38-
<PackageReference Include="Verify.xunit" Version="30.20.1" />
39-
<PackageReference Include="xunit" Version="2.9.3" />
39+
<PackageReference Include="Verify.xunitv3" Version="31.9.3" />
40+
<PackageReference Include="xunit.v3" Version="3.2.1" />
4041
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
4142
</ItemGroup>
4243
<ItemGroup>

ArchUnitNETTests/ArchitectureTests/ArchUnitArchitectureTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using ArchUnitNET.Fluent;
33
using ArchUnitNET.Fluent.Slices;
44
using ArchUnitNET.Loader;
5-
using ArchUnitNET.xUnit;
5+
using ArchUnitNET.xUnitV3;
66
using Xunit;
77
using static ArchUnitNET.Fluent.ArchRuleDefinition;
88

ArchUnitNETTests/Domain/AttributeArgumentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using ArchUnitNET.Domain;
44
using ArchUnitNET.Domain.Extensions;
55
using ArchUnitNET.Loader;
6-
using ArchUnitNET.xUnit;
6+
using ArchUnitNET.xUnitV3;
77
using Xunit;
88
using static ArchUnitNET.Fluent.ArchRuleDefinition;
99
using Attribute = System.Attribute;

ArchUnitNETTests/Domain/NullableReferenceTypeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ArchUnitNET.Domain;
2-
using ArchUnitNET.xUnit;
2+
using ArchUnitNET.xUnitV3;
33
using TestAssembly;
44
using Xunit;
55
using static ArchUnitNET.Fluent.ArchRuleDefinition;

0 commit comments

Comments
 (0)