EndsWithConstraint - jnm2/nunit-docs-wiki GitHub Wiki
EndsWithConstraint tests for an ending string.
EndsWithConstraint(string expected)
Does.EndWith(string expected)
EndsWith(string expected)
...IgnoreCase
string phrase = "Make your tests fail before passing!"
Assert.That(phrase, Does.EndWith("!"));
Assert.That(phrase, Does.EndWith("PASSING!").IgnoreCase);
- EndsWith may appear only in the body of a constraint expression or when the inherited syntax is used.