commonMain.ch.tutteli.atrium.assertions.DescriptiveAssertion.kt Maven / Gradle / Ivy
package ch.tutteli.atrium.assertions
import ch.tutteli.atrium.reporting.translating.Translatable
/**
* The base interface for [Assertion]s which consist of a [representation] of an expected result
* with a complementary [description].
*
* For instance, the assertion `is not: null` could be represented with this type where `null` is the [representation]
* and `is not` the complementary [description].
*/
interface DescriptiveAssertion : Assertion {
/**
* The representation of the expected result such as `1`, `null` etc.
*/
val representation: Any
/**
* The complementary description to the [representation] result such as `contains`, `is not` etc.
*/
val description: Translatable
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy