Skip to content

Commit 47d96af

Browse files
committed
Changes from code review
1 parent 0db9a60 commit 47d96af

File tree

14 files changed

+1
-47
lines changed

14 files changed

+1
-47
lines changed

src/NUnitConsole/nunit4-console.tests/Program.cs

-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ class Program
88
{
99
static int Main(string[] args)
1010
{
11-
#if NETFRAMEWORK
1211
return new NUnitLite.TextRunner(typeof(Program).Assembly).Execute(args);
13-
#else
14-
return new NUnitLite.TextRunner(typeof(Program).GetTypeInfo().Assembly).Execute(args);
15-
#endif
1612
}
1713
}
1814
}

src/NUnitEngine/agents/AgentExitCodes.cs

-16
This file was deleted.

src/NUnitEngine/agents/nunit-agent-net462-x86/nunit-agent-net462-x86.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<Compile Include="..\AgentExitCodes.cs" Link="AgentExitCodes.cs" />
2827
<Compile Include="..\Program.cs" Link="Program.cs" />
2928
</ItemGroup>
3029

src/NUnitEngine/agents/nunit-agent-net462/nunit-agent-net462.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<Compile Include="..\AgentExitCodes.cs" Link="AgentExitCodes.cs" />
2726
<Compile Include="..\Program.cs" Link="Program.cs" />
2827
</ItemGroup>
2928

src/NUnitEngine/agents/nunit-agent-net60/nunit-agent-net60.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<Compile Include="..\AgentExitCodes.cs" Link="AgentExitCodes.cs" />
2827
<Compile Include="..\Program.cs" Link="Program.cs" />
2928
</ItemGroup>
3029

src/NUnitEngine/agents/nunit-agent-net70/nunit-agent-net70.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<Compile Include="..\AgentExitCodes.cs" Link="AgentExitCodes.cs" />
2827
<Compile Include="..\Program.cs" Link="Program.cs" />
2928
</ItemGroup>
3029

src/NUnitEngine/agents/nunit-agent-net80/nunit-agent-net80.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<Compile Include="..\AgentExitCodes.cs" Link="AgentExitCodes.cs" />
2928
<Compile Include="..\Program.cs" Link="Program.cs" />
3029
</ItemGroup>
3130

src/NUnitEngine/agents/nunit-agent-netcore31/nunit-agent-netcore31.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<Compile Include="..\AgentExitCodes.cs" Link="AgentExitCodes.cs" />
2928
<Compile Include="..\Program.cs" Link="Program.cs" />
3029
</ItemGroup>
3130

src/NUnitEngine/nunit.common.tests/Program.cs

-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ class Program
99
{
1010
static int Main(string[] args)
1111
{
12-
#if NETFRAMEWORK
1312
return new TextRunner(typeof(Program).Assembly).Execute(args);
14-
#else
15-
return new TextRunner(typeof(Program).GetTypeInfo().Assembly).Execute(args);
16-
#endif
1713
}
1814
}
1915
}

src/NUnitEngine/nunit.common/AgentExitCodes.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace NUnit
44
{
5-
internal static class AgentExitCodes
5+
public static class AgentExitCodes
66
{
77
public const int OK = 0;
88
public const int PARENT_PROCESS_TERMINATED = -1;

src/NUnitEngine/nunit.engine.core.tests/Program.cs

-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ class Program
99
{
1010
static int Main(string[] args)
1111
{
12-
#if NETFRAMEWORK
1312
return new TextRunner(typeof(Program).Assembly).Execute(args);
14-
#else
15-
return new TextRunner(typeof(Program).GetTypeInfo().Assembly).Execute(args);
16-
#endif
1713
}
1814
}
1915
}

src/NUnitEngine/nunit.engine.core.tests/nunit.engine.core.tests.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,4 @@
6565
<None Include="App.config" />
6666
</ItemGroup>
6767

68-
<ItemGroup>
69-
<Folder Include="Internal\Logging\" />
70-
</ItemGroup>
71-
7268
</Project>

src/NUnitEngine/nunit.engine.tests/Program.cs

-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ class Program
99
{
1010
static int Main(string[] args)
1111
{
12-
#if NETFRAMEWORK
1312
return new TextRunner(typeof(Program).Assembly).Execute(args);
14-
#else
15-
return new TextRunner(typeof(Program).GetTypeInfo().Assembly).Execute(args);
16-
#endif
1713
}
1814
}
1915
}

src/NUnitEngine/nunit.engine/nunit.engine.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
<Reference Include="System.Web" />
2424
</ItemGroup>
2525

26-
<ItemGroup>
27-
<Compile Include="..\agents\AgentExitCodes.cs" LinkBase="Agents" />
28-
</ItemGroup>
29-
3026
<ItemGroup>
3127
<ProjectReference Include="..\nunit.engine.api\nunit.engine.api.csproj" />
3228
<ProjectReference Include="..\nunit.engine.core\nunit.engine.core.csproj" />

0 commit comments

Comments
 (0)