Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all color console display to nunit.common for reuse #1622

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
/// <summary>
/// Sets the console color in the constructor and resets it in the dispose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
public class ColorConsoleWriter : ExtendedTextWrapper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
/// <summary>
/// ColorStyle enumerates the various styles used in the console display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using System.Text;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
/// <summary>
/// ExtendedTextWrapper wraps a TextWriter and makes it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.IO;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
/// <summary>
/// ExtendedTextWriter extends the TextWriter abstract class
Expand Down
1 change: 1 addition & 0 deletions src/NUnitConsole/nunit4-console.tests/BadFileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using NUnit.Engine.Runners;
using NUnit.Engine.Services;
using NUnit.Framework;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
4 changes: 1 addition & 3 deletions src/NUnitConsole/nunit4-console.tests/ColorConsoleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using System;
using NUnit.Framework;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
using Utilities;

[TestFixture, Parallelizable(ParallelScope.None)]
public class ColorConsoleTests
{
Expand Down
2 changes: 1 addition & 1 deletion src/NUnitConsole/nunit4-console.tests/ColorStyleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using NUnit.Framework;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
[TestFixture]
public class ColorStyleTests
Expand Down
3 changes: 1 addition & 2 deletions src/NUnitConsole/nunit4-console.tests/ConsoleRunnerTests.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt

using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using NSubstitute;
using NUnit.ConsoleRunner;
using NUnit.ConsoleRunner.Options;
using NUnit.Engine;
using NUnit.Engine.Extensibility;
using NUnit.Engine.Services;
using NUnit.Framework;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using NUnit.Framework;

namespace NUnit.ConsoleRunner
namespace NUnit.TextDisplay
{
public class ExtendedTextWrapperTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using NUnit.Framework;
using NUnit.Framework.Api;
using NUnit.TestData.Assemblies;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.IO;
using System.Text;
using NUnit.Framework;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
1 change: 1 addition & 0 deletions src/NUnitConsole/nunit4-console/ConsoleRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using NUnit.Engine;
using NUnit.Engine.Extensibility;
using NUnit.Extensibility;
using NUnit.TextDisplay;
using System.Runtime.InteropServices;
using System.Text;

Expand Down
1 change: 1 addition & 0 deletions src/NUnitConsole/nunit4-console/ConsoleTestResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Text;
using System.Xml;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
1 change: 1 addition & 0 deletions src/NUnitConsole/nunit4-console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Reflection;
using System.Text;
using NUnit.Engine;
using NUnit.TextDisplay;

using NUnit.ConsoleRunner.Options;

Expand Down
2 changes: 1 addition & 1 deletion src/NUnitConsole/nunit4-console/ResultReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Globalization;
using System.Xml;
using NUnit.ConsoleRunner.Options;
using NUnit.ConsoleRunner.Utilities;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
1 change: 1 addition & 0 deletions src/NUnitConsole/nunit4-console/TestEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System;
using System.Xml;
using NUnit.Engine;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
4 changes: 2 additions & 2 deletions src/NUnitConsole/nunit4-netcore-console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
using System.Linq;
using System.Reflection;
using System.Text;
using NUnit.Engine;

using NUnit.ConsoleRunner.Options;
using NUnit.Engine;
using NUnit.TextDisplay;

namespace NUnit.ConsoleRunner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,9 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="..\nunit4-console\ColorConsole.cs" Link="ColorConsole.cs" />
<Compile Include="..\nunit4-console\ColorConsoleWriter.cs" Link="ColorConsoleWriter.cs" />
<Compile Include="..\nunit4-console\ColorStyle.cs" Link="ColorStyle.cs" />
<Compile Include="..\nunit4-console\ConsoleOptions.cs" Link="ConsoleOptions.cs" />
<Compile Include="..\nunit4-console\ConsoleRunner.cs" Link="ConsoleRunner.cs" />
<Compile Include="..\nunit4-console\ConsoleTestResult.cs" Link="ConsoleTestResult.cs" />
<Compile Include="..\nunit4-console\ExtendedTextWrapper.cs" Link="ExtendedTextWrapper.cs" />
<Compile Include="..\nunit4-console\ExtendedTextWriter.cs" Link="ExtendedTextWriter.cs" />
<Compile Include="..\nunit4-console\FileSystem.cs" Link="FileSystem.cs" />
<Compile Include="..\nunit4-console\FrameworkPackageSettings.cs" Link="FrameworkPackageSettings.cs" />
<Compile Include="..\nunit4-console\Options\DefaultOptionsProvider.cs" Link="Options\DefaultOptionsProvider.cs" />
Expand Down
Loading