I just want to verify that ViewModel is calling routeToSomeView() method once but it will throw a fatal error unless I do something like this which feels unnecessary since it's a non-throwing void method after all:
given(router) .routeToHome().willReturn()
I think in this scenario, this given shouldn't be required at all.
So I have this kind of routing protocol:
I just want to verify that ViewModel is calling
routeToSomeView()
method once but it will throw a fatal error unless I do something like this which feels unnecessary since it's a non-throwing void method after all:I think in this scenario, this given shouldn't be required at all.