doc / ch.tutteli.atrium.api.infix.en_GB.creating.feature / MetaFeatureOptionWithCreator

MetaFeatureOptionWithCreator

data class MetaFeatureOptionWithCreator<T, R>

Parameter object which combines a lambda with a MetaFeatureOption receiver (called provider) and an assertionCreator.

Use the function of({ ... }) { ... } to create this representation where the first argument is a lambda with a MetaFeatureOption as receiver which has to create a MetaFeature where the subject of the assertion is available via implicit parameter it. Usually you use f to create a MetaFeature, e.g. feature of({ f(it::size) }) { o toBe 3 }

Since
0.12.0

Properties

assertionCreator

val assertionCreator: Expect<R>.() -> Unit

provider

val provider: MetaFeatureOption<T>.(T) -> MetaFeature<R>