Skip to content

Commit

Permalink
Revert "#50575 default case color behaviour is enabled (#74349)"
Browse files Browse the repository at this point in the history
This reverts commit ad366f2.
  • Loading branch information
mkhamoyan authored Aug 24, 2022
1 parent 0165b25 commit 62b1457
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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 @@ -32,9 +34,6 @@ public void Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorB
logger.Log(LogLevel.Information, 0, _state, null, _defaultFormatter);
}

// For Android/iOS/tvOS/MacCatalyst default color behavior, enables the color
colorBehavior = colorBehavior == LoggerColorBehavior.Default && (PlatformDetection.IsAndroid || PlatformDetection.IsAppleMobile) ? LoggerColorBehavior.Enabled : colorBehavior;

// Assert
switch (colorBehavior)
{
Expand Down

0 comments on commit 62b1457

Please sign in to comment.