EndsWithConstraint - samuelneff/docs GitHub Wiki

EndsWithConstraint tests for an ending string.

Constructor

```C# EndsWithConstraint(string expected) ```

Syntax

```C# Does.EndWith(string expected) EndsWith(string expected) ```

Modifiers

```C# ...IgnoreCase ```

Examples of Use

```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.

⚠️ **GitHub.com Fallback** ⚠️