commonMain.ch.tutteli.atrium.creating.DelegatingExpect.kt Maven / Gradle / Ivy
package ch.tutteli.atrium.creating
import ch.tutteli.atrium.assertions.Assertion
import ch.tutteli.atrium.core.ExperimentalNewExpectTypes
import ch.tutteli.atrium.core.Option
import ch.tutteli.atrium.creating.impl.DelegatingExpectImpl
/**
* Represents an [Expect] which passes on appended [Assertion]s to a given [Expect].
*/
interface DelegatingExpect : Expect {
companion object {
@OptIn(ExperimentalNewExpectTypes::class, ExperimentalComponentFactoryContainer::class)
operator fun invoke(expect: AssertionContainer<*>, maybeSubject: Option): Expect =
DelegatingExpectImpl(expect, maybeSubject)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy