1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

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

View File

@ -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"));
} }