Fix color system mapping bug

Closes #342
This commit is contained in:
Patrik Svensson
2021-04-08 00:46:39 +02:00
committed by Phil Scott
parent ca036f6543
commit 13ac38ed04
6 changed files with 52 additions and 10 deletions

View File

@ -21,7 +21,7 @@ namespace Spectre.Console.Testing
IAnsiConsoleInput IAnsiConsole.Input => Input;
public FakeAnsiConsole(
ColorSystem system,
ColorSystem colors,
AnsiSupport ansi = AnsiSupport.Yes,
int width = 80)
{
@ -32,7 +32,7 @@ namespace Spectre.Console.Testing
_console = factory.Create(new AnsiConsoleSettings
{
Ansi = ansi,
ColorSystem = (ColorSystemSupport)system,
ColorSystem = (ColorSystemSupport)colors,
Out = _writer,
Enrichment = new ProfileEnrichment
{