StringAssertions.NotStartWith Method
Definition
Asserts that the string does not start with the specified value.
c#
public AssertionsChain<StringAssertions, string> NotStartWith(string expected, StringComparison comparison = StringComparison.System.StringComparison);Parameters
| Name | Type | Description |
|---|---|---|
expected | String | The value the string should not start with. |
comparison | StringComparison | The StringComparison to use. Defaults to Ordinal. |
Returns
AssertionsChain<StringAssertions, String>
An AssertionsChain<TAssertions, T> for chaining further assertions.