mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:45:42 +00:00
style(tests): use Has.Length for length assertion
This commit is contained in:
parent
45ffd08dda
commit
dc0b6abdc4
@ -41,7 +41,7 @@ internal class CharTests
|
|||||||
public void RepeatOneCountShouldBeLength1String()
|
public void RepeatOneCountShouldBeLength1String()
|
||||||
{
|
{
|
||||||
string repeated = 'a'.Repeat(1);
|
string repeated = 'a'.Repeat(1);
|
||||||
Assert.That(repeated.Length, Is.EqualTo(1));
|
Assert.That(repeated, Has.Length.EqualTo(1));
|
||||||
Assert.That(repeated, Is.EqualTo("a"));
|
Assert.That(repeated, Is.EqualTo("a"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user