test: use fluent Has.Length

This commit is contained in:
Oliver Booth 2023-08-27 13:38:45 +01:00
parent e115a8fa0e
commit 0d02c88ef6
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ internal class StringTests
public void Repeat_ShouldReturnItself_GivenCount1()
{
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"));
}