StringAssertions.EndWith Method
Definition
Asserts that the string ends with the specified value.
public StringAssertionsChain EndWith(string expected, StringComparison comparison = StringComparison.System.StringComparison);
Parameters
| Name | Type | Description |
|---|---|---|
| expected | String | The expected end of the string. |
| comparison | StringComparison | The StringComparison to use. Defaults to Ordinal. |
Returns
A StringAssertionsChain for chaining further assertions.