Skip to content

Commit

Permalink
dotnet#50575 default case clor behaviour is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Aug 22, 2022
1 parent e23f543 commit ae0bdef
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public class SimpleConsoleFormatterTests : ConsoleFormatterTests
[InlineData(LoggerColorBehavior.Default)]
[InlineData(LoggerColorBehavior.Enabled)]
[InlineData(LoggerColorBehavior.Disabled)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/50575", TestPlatforms.Android)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51398", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/73436", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot))]
public void Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorBehavior colorBehavior)
{
Expand All @@ -38,6 +36,7 @@ public void Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorB
switch (colorBehavior)
{
case LoggerColorBehavior.Enabled:
case LoggerColorBehavior.Default:
Assert.Equal(2, sink.Writes.Count);
var write = sink.Writes[0];
Assert.Equal(ConsoleColor.Black, write.BackgroundColor);
Expand All @@ -46,7 +45,6 @@ public void Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorB
Assert.Equal(TestConsole.DefaultBackgroundColor, write.BackgroundColor);
Assert.Equal(TestConsole.DefaultForegroundColor, write.ForegroundColor);
break;
case LoggerColorBehavior.Default:
case LoggerColorBehavior.Disabled:
Assert.Equal(1, sink.Writes.Count);
write = sink.Writes[0];
Expand Down

0 comments on commit ae0bdef

Please sign in to comment.