Skip to content

Commit

Permalink
test: use fluent Has.Length
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 27, 2023
1 parent e115a8f commit 0d02c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion X10D.Tests/src/Text/StringTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ public void Repeat_ShouldReturnEmptyString_GivenCount0()
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"));
}

Expand Down

0 comments on commit 0d02c88

Please sign in to comment.