Skip to content

StringAssertions.NotHaveLength Method

Definition

Asserts that the string does not have the specified length.

public StringAssertionsChain NotHaveLength(int expected);

Parameters

Name Type Description
expected Int32 The length the string should not have.

Returns

StringAssertionsChain

A StringAssertionsChain for chaining further assertions.