Does anyone have any good advice on how to unit test viewmodels that make use of IResult and Coroutines?
My viewmodel has a method with the following signature
public IEnumerable<IResult> DoSomething()
My typical unit tests have the following pattern:
var result = this.viewModel.DoSomething().FirstOrDefault();
I might do some additional work with the result object depending on the test case.
Is this the recommended approach?