Skip to content

Commit

Permalink
Update Ansi_Tests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
benpollarduk authored Dec 4, 2024
1 parent 898719a commit cfb4934
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NetAF.Tests/Rendering/Console/Ansi_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ public void GivenNoColorEnvironmentVariableSetToEmptyString_WhenIsColorSuppresse
}

[TestMethod]
public void GivenNoColorEnvironmentVariableSetTo0_WhenIsColorSuppressed_ThenReturnFalse()
public void GivenNoColorEnvironmentVariableSetTo0_WhenIsColorSuppressed_ThenReturnTrue()
{
Environment.SetEnvironmentVariable(Ansi.NO_COLOR, "0");

var result = Ansi.IsColorSuppressed();

Assert.IsFalse(result);
Assert.IsTrue(result);
}

[TestMethod]
public void GivenNoColorEnvironmentVariableSetToFalse_WhenIsColorSuppressed_ThenReturnFalse()
public void GivenNoColorEnvironmentVariableSetToFalse_WhenIsColorSuppressed_ThenReturnTrue()
{
Environment.SetEnvironmentVariable(Ansi.NO_COLOR, "False");

var result = Ansi.IsColorSuppressed();

Assert.IsFalse(result);
Assert.IsTrue(result);
}

[TestMethod]
Expand Down

0 comments on commit cfb4934

Please sign in to comment.