mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00
Add failing unit test for comparing black and default color
This commit is contained in:
parent
2e7b3d520a
commit
b0341862cf
@ -78,6 +78,20 @@ namespace Spectre.Console.Tests.Unit
|
|||||||
// Then
|
// Then
|
||||||
result.ShouldBeFalse();
|
result.ShouldBeFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Shourd_Not_Consider_Black_And_Default_Colors_Equal()
|
||||||
|
{
|
||||||
|
// Given
|
||||||
|
var color1 = Color.Default;
|
||||||
|
var color2 = Color.Black;
|
||||||
|
|
||||||
|
// When
|
||||||
|
var result = color1.Equals(color2);
|
||||||
|
|
||||||
|
// Then
|
||||||
|
result.ShouldBeFalse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public sealed class TheGetHashCodeMethod
|
public sealed class TheGetHashCodeMethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user