-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Putting tests of nunit.common into a separate test assembly
- Loading branch information
1 parent
9abfb9e
commit 0db9a60
Showing
6 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt | ||
|
||
using System.Reflection; | ||
using NUnitLite; | ||
|
||
namespace NUnit.Engine.Tests | ||
{ | ||
class Program | ||
{ | ||
static int Main(string[] args) | ||
{ | ||
#if NETFRAMEWORK | ||
return new TextRunner(typeof(Program).Assembly).Execute(args); | ||
#else | ||
return new TextRunner(typeof(Program).GetTypeInfo().Assembly).Execute(args); | ||
#endif | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/NUnitEngine/nunit.common.tests/nunit.common.tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<RootNamespace>NUnit</RootNamespace> | ||
<TargetFrameworks>net462;net8.0</TargetFrameworks> | ||
<OutputType>Exe</OutputType> | ||
<NoWarn>$(NoWarn);618</NoWarn> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\nunit.snk</AssemblyOriginatorKeyFile> | ||
<OutputPath>..\..\..\bin\$(Configuration)\</OutputPath> | ||
<DebugType>portable</DebugType> | ||
<DebugSymbols>true</DebugSymbols> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)/../../Nullable.props" /> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\nunit.common\nunit.common.csproj" /> | ||
<ProjectReference Include="..\nunit.engine.api\nunit.engine.api.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="NUnit" Version="4.2.2" /> | ||
<PackageReference Include="NUnitLite" Version="4.2.2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters