shouldContain

infix fun String.shouldContain(substring: String)

Asserts that the receiver string contains the specified substring.

Parameters

substring

The string expected to be present.

Throws

if the string does not contain the substring.