|
47 | 47 | <None Remove="Resources/**/*" /> |
48 | 48 | <EmbeddedResource Include="Resources/**/*" /> |
49 | 49 | </ItemGroup> |
50 | | - |
| 50 | + |
51 | 51 | <ItemGroup Label="Dynamic Versioning" Condition="'$(IsCSharpProject)' == 'true'"> |
52 | 52 | <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> |
53 | 53 | <_Parameter1>"DynamicProxyGenAssembly2"</_Parameter1> |
|
88 | 88 |
|
89 | 89 | <!-- Test Projects. --> |
90 | 90 | <PropertyGroup Label="Testing Project Properties" Condition="'$(IsTestProject)' == 'true'"> |
91 | | - <NoWarn>$(NoWarn);CA1707</NoWarn> |
| 91 | + <OutputType>Exe</OutputType> |
| 92 | + |
| 93 | + <UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner> |
| 94 | + <TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> |
| 95 | + |
| 96 | + <NoWarn>$(NoWarn);CA1707;CA1822</NoWarn> |
92 | 97 |
|
93 | 98 | <CollectCoverage>true</CollectCoverage> |
94 | | - <CoverletOutput Condition=" '$(OutputPath)' != '' ">$(OutputPath)/</CoverletOutput> |
95 | | - <CoverletOutputFormat>cobertura,json</CoverletOutputFormat> |
96 | | - <Exclude>[NSubstitute*]*,[xunit.*]*</Exclude> |
| 99 | + <Exclude>[NSubstitute*]*,[xunit.*]*,[TUnit.*]*</Exclude> |
97 | 100 | <ExcludeByAttribute>System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute</ExcludeByAttribute> |
98 | 101 |
|
99 | 102 | <Packable>false</Packable> |
|
104 | 107 | <EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation> |
105 | 108 | </PropertyGroup> |
106 | 109 |
|
107 | | - <ItemGroup Label="Test AssemblyInfo and Runner Properties" Condition="'$(IsTestProject)' == 'true'"> |
108 | | - <AssemblyAttribute Include="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" /> |
109 | | - |
110 | | - <AssemblyAttribute Include="Xunit.AssemblyTrait"> |
| 110 | + <ItemGroup Label="Testing NuGet Packages" Condition="'$(IsTestProject)' == 'true'"> |
| 111 | + <Using Include="Shouldly" /> |
| 112 | + <Using Include="Xunit" /> |
| 113 | + <Using Include="NSubstitute" /> |
| 114 | + |
| 115 | + <Content Include="$(MSBuildThisFileDirectory)xunit/xunit.runner.json" Link="Properties/shared-xunit.runner.json" CopyToOutputDirectory="PreserveNewest" /> |
| 116 | + |
| 117 | + <AssemblyAttribute Include="Xunit.Trait"> |
111 | 118 | <_Parameter1>Category</_Parameter1> |
112 | 119 | <_Parameter2>$(TestingType)</_Parameter2> |
113 | 120 | </AssemblyAttribute> |
114 | 121 |
|
115 | | - <Content Include="$(MSBuildThisFileDirectory)xunit/xunit.runner.json" Link="Properties/shared-xunit.runner.json" CopyToOutputDirectory="PreserveNewest" /> |
116 | | - </ItemGroup> |
117 | | - |
118 | | - <ItemGroup Label="Testing NuGet Packages" Condition="'$(IsTestProject)' == 'true'"> |
119 | | - <!-- Implicit usings for tests. --> |
120 | | - <Using Include="FluentAssertions" /> |
121 | | - <Using Include="NSubstitute" /> |
122 | | - <Using Include="Xunit" /> |
| 122 | + <AssemblyAttribute Include="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" /> |
123 | 123 |
|
124 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
125 | 124 | <PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" /> |
126 | 125 | <PackageReference Include="Microsoft.Testing.Extensions.TrxReport" /> |
| 126 | + <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
127 | 127 |
|
128 | | - <PackageReference Include="FluentAssertions" /> |
129 | | - <PackageReference Include="NCrunch.Framework" /> |
130 | | - <PackageReference Include="NSubstitute" /> |
| 128 | + <PackageReference Include="Shouldly" /> |
131 | 129 |
|
| 130 | + <PackageReference Include="NSubstitute" /> |
132 | 131 | <PackageReference Include="NSubstitute.Analyzers.CSharp"> |
133 | 132 | <PrivateAssets>all</PrivateAssets> |
134 | 133 | <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
135 | 134 | </PackageReference> |
136 | 135 |
|
137 | | - <PackageReference Include="xunit" /> |
138 | | - <PackageReference Include="xunit.analyzers" /> |
| 136 | + <PackageReference Include="NCrunch.Framework" /> |
| 137 | + |
| 138 | + <PackageReference Include="xunit.v3" /> |
| 139 | + <PackageReference Include="xunit.analyzers"> |
| 140 | + <PrivateAssets>all</PrivateAssets> |
| 141 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 142 | + </PackageReference> |
139 | 143 | <PackageReference Include="xunit.runner.visualstudio"> |
140 | 144 | <PrivateAssets>all</PrivateAssets> |
141 | 145 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
142 | 146 | </PackageReference> |
143 | | - |
144 | 147 | </ItemGroup> |
145 | 148 | </Project> |
0 commit comments