EndsWithConstraint - samuelneff/docs GitHub Wiki
EndsWithConstraint tests for an ending string.
```C# EndsWithConstraint(string expected) ``` ```C# Does.EndWith(string expected) EndsWith(string expected) ``` ```C# ...IgnoreCase ``` ```C# string phrase = "Make your tests fail before passing!"Assert.That( phrase, Does.EndWith( "!" ) ); Assert.That( phrase, Does.EndWith( "PASSING!" ).IgnoreCase ); Expect( phrase, EndsWith( "!" ) );
<h4>Notes</h4>
1. <b>EndsWith</b> may appear only in the body of a constraint
expression or when the inherited syntax is used.