length

infix 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.infix.en_GB.samples.CharSequenceExpectationSamples.length

Creates 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

Samples

ch.tutteli.atrium.api.infix.en_GB.samples.CharSequenceExpectationSamples.lengthFeature