How to mock sealed classes and test their arguments with Mockk?

649 Views Asked by At

I am trying to test sealed classes in a view model:

sealed class MyActions {

data class BottomNavigate(val fragment: Fragment2) :
    MyActions()
}

How do I test BottomNavigate was called with an argument of type Fragment2 using mockk or anything else?

0

There are 0 best solutions below