-
-
Save sukyology/d546abf54f87809cd4010b2f9feafe61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun test3() { | |
val container: Container<SubSealed> = mockk(relaxed = true) | |
var i = 0; | |
every { i++; container.sealed } returns mockk() | |
val sealed: SubSealed = container.sealed | |
assertEquals(SubSealed::class, sealed::class) // success | |
assertEquals(1, i) // failed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment