mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 08:18:47 +00:00
test: use fluent Has.Length
This commit is contained in:
parent
e115a8fa0e
commit
0d02c88ef6
@ -762,7 +762,7 @@ internal class StringTests
|
|||||||
public void Repeat_ShouldReturnItself_GivenCount1()
|
public void Repeat_ShouldReturnItself_GivenCount1()
|
||||||
{
|
{
|
||||||
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