mirror of https://github.com/oliverbooth/X10D
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()
|
||||
{
|
||||
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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue