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
val assertionCreator: Expect<R>.() -> Unit |
|
val provider: MetaFeatureOption<T>.(T) -> MetaFeature<R> |