Skip to content

StringAssertions.NotEndWith Method

Definition

Asserts that the string does not end with the specified value.

public StringAssertionsChain NotEndWith(string expected, StringComparison comparison = StringComparison.System.StringComparison);

Parameters

Name Type Description
expected String The value the string should not end with.
comparison StringComparison The StringComparison to use. Defaults to Ordinal.

Returns

StringAssertionsChain

A StringAssertionsChain for chaining further assertions.