Skip to content

Commit

Permalink
Merge pull request #1593 from nunit/issue-1592
Browse files Browse the repository at this point in the history
Eliminate duplication of console code
  • Loading branch information
CharliePoole authored Jan 3, 2025
2 parents 8fdb712 + 6251bd7 commit 68032ff
Show file tree
Hide file tree
Showing 25 changed files with 27 additions and 5,066 deletions.
6 changes: 6 additions & 0 deletions src/NUnitConsole/nunit4-console/Options/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,9 @@ public OptionException(string message, string? optionName, Exception innerExcept
}

#if !PCL
#if NET8_0_OR_GREATER
[Obsolete]
#endif
protected OptionException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Expand All @@ -790,6 +793,9 @@ public string? OptionName
}

#if !PCL
#if NET8_0_OR_GREATER
[Obsolete]
#endif
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
Expand Down
2 changes: 0 additions & 2 deletions src/NUnitConsole/nunit4-console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public static int Main(string[] args)
return ConsoleRunner.INVALID_ARG;
}

#if NETFRAMEWORK
if (Options.RuntimeFrameworkSpecified)
{
var availableRuntimeService = engine.Services.GetService<IAvailableRuntimes>();
Expand All @@ -118,7 +117,6 @@ public static int Main(string[] args)
if (!runtimeAvailable)
WriteErrorMessage("Unavailable runtime framework requested: " + Options.RuntimeFramework);
}
#endif

if (Options.WorkDirectory != null)
engine.WorkDirectory = Options.WorkDirectory;
Expand Down
150 changes: 0 additions & 150 deletions src/NUnitConsole/nunit4-netcore-console/ColorConsole.cs

This file was deleted.

107 changes: 0 additions & 107 deletions src/NUnitConsole/nunit4-netcore-console/ColorConsoleWriter.cs

This file was deleted.

59 changes: 0 additions & 59 deletions src/NUnitConsole/nunit4-netcore-console/ColorStyle.cs

This file was deleted.

Loading

0 comments on commit 68032ff

Please sign in to comment.