Ensures that unit test dependencies are only effective when using debug mode

This commit is contained in:
Thorsten Sommer 2020-01-07 14:11:14 +01:00
parent c11e2593a3
commit 677939d0b3
3 changed files with 13 additions and 5 deletions

View File

@ -26,9 +26,9 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Encrypter" Version="1.0.0" /> <PackageReference Include="Encrypter" Version="1.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<PackageReference Include="NUnit" Version="3.12.0" /> <PackageReference Include="NUnit" Version="3.12.0" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.0"> <PackageReference Include="NUnit3TestAdapter" Version="3.16.0" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>

View File

@ -1,4 +1,6 @@
using System; #if DEBUG
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Numerics; using System.Numerics;
using System.Text; using System.Text;
@ -36,3 +38,5 @@ namespace Ed25519
} }
} }
} }
#endif

View File

@ -1,4 +1,6 @@
using System; #if DEBUG
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
@ -908,3 +910,5 @@ namespace Ed25519
} }
} }
} }
#endif