fun <T, R> FeatureExpect<T, R>.withOptions(configuration: OptionsChooser<R>.() -> Unit): Expect<R>
Uses the given configuration-lambda to create an ExpectOptions which in turn is used to override (parts) of the existing configuration. fun <T, R> FeatureExpect<T, R>.withOptions(options: FeatureOptions<R>): Expect<R>
Uses the given options to override (parts) of the existing configuration. |
|
fun <T, R> FeatureExpect<T, R>.withRepresentation(textRepresentation: String): Expect<R>
Wraps the given textRepresentation into a RawString and uses it as representation of the subject instead of the representation that has been defined so far (which defaults to the subject itself). fun <T, R> FeatureExpect<T, R>.withRepresentation(representationProvider: (R) -> Any): Expect<R>
Uses the given representationProvider to retrieve a representation which can be based on the current subject where it is used as new representation of the subject instead of the representation that has been defined so far (which defaults to the subject itself). |