length
fun <T : CharSequence> Expect<T>.length(assertionCreator: Expect<Int>.() -> Unit): Expect<T>(source)
Expects that the property CharSequence.length of the subject of this expectation holds all assertions the given assertionCreator creates for it and returns an Expect for the current subject of this expectation.
Return
an Expect for the subject of this expectation.
Since
1.3.0
Samples
ch.tutteli.atrium.api.fluent.en_GB.samples.CharSequenceExpectationSamples.lengthCreates an Expect for the property CharSequence.length of the subject of this expectation, so that further fluent calls are assertions about it.
Return
The newly created Expect for the extracted feature
Since
1.3.0