secant-android-wallet/crash-android-lib/src/androidTest/kotlin/co/electriccoin/zcash/crash/android/internal/local/ReportableExceptionTest.kt

20 lines
554 B
Kotlin

package co.electriccoin.zcash.crash.android.internal.local
import co.electriccoin.zcash.crash.ReportableException
import co.electriccoin.zcash.crash.fixture.ReportableExceptionFixture
import org.junit.Assert.assertEquals
import org.junit.Test
class ReportableExceptionTest {
@Test
fun bundle() {
val reportableException = ReportableExceptionFixture.new()
val bundle = reportableException.toBundle()
val fromBundle = ReportableException.fromBundle(bundle)
assertEquals(reportableException, fromBundle)
}
}