Pablo
10/07/2020, 9:33 AMgildor
10/07/2020, 10:30 AMPablo
10/07/2020, 12:16 PMgildor
10/07/2020, 12:58 PMPablo
10/07/2020, 1:06 PMgildor
10/07/2020, 2:31 PMon each test how do I use runBlockingTestWhat do you mean?
@Test fun someTest() = runBlockingTest{
val presenet = createPresenter()
assertTrue(presenter.doSomething())
}
fun CoroutineScope.createPresenter() = MyPresenter(..,this, coroutineContext[CoroutineDispatcher]!!)
Pablo
10/07/2020, 2:53 PMgildor
10/07/2020, 11:26 PM