fun <T : CharSequence> IAssertionPlant<T>.contains(expected: CharSequence): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains the expected.
AssertionError
- Might throw an AssertionError if the assertion made is not correct
Return
This plant to support a fluent-style API.
fun <T : CharSequence> IAssertionPlant<T>.contains(expected: CharSequence, vararg otherExpected: CharSequence): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains the expected and otherExpecteds (if defined).
AssertionError
- Might throw an AssertionError if the assertion made is not correct
Return
This plant to support a fluent-style API.
fun <T : CharSequence> IAssertionPlant<T>.contains(expected: ITranslatable, vararg otherExpected: ITranslatable): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains expected's getDefault representation and the getDefault representation of the otherExpected (if defined).
AssertionError
- Might throw an AssertionError if the assertion made is not correct
Return
This plant to support a fluent-style API.
fun <T : CharSequence> IAssertionPlant<T>.contains(expected: Any, vararg otherExpected: Any): IAssertionPlant<T>
Makes the assertion that IAssertionPlant.subject contains expected's toString representation and the toString representation of the otherExpected (if defined).
AssertionError
- Might throw an AssertionError if the assertion made is not correct
Return
This plant to support a fluent-style API.