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