inline fun <T> changeSubject(originalExpect: Expect<T>): SubjectChangerBuilder.KindStep<T>
Returns SubjectChangerBuilder - helping you to change the subject of the assertion.
In detail, its an inline
property which returns SubjectChangerBuilder
which inter alia delegates to the implementation of SubjectChanger.
In case you want to extract a feature (e.g. get the first element of a List
) instead of changing the subject
into another representation (e.g. down-cast Person
to Student
) then you should use
feature.extractor instead.
inline fun <T> changeSubject(originalAssertionContainer: SubjectProvider<T>): SubjectChangerBuilder.DeprecatedKindStep<T>