It would be nice to have better usability for methods that return Task.
For example, an option for doing something like:
myMock.Setup(x => x.ReadAsync()).ThrowsAsync(new Exception());
which should return a faulted task with that exception.
Also, for methods that return Task that are not explicitly set up, it would be
good that instead of defaulting to return a null Task, that they return a
completed Task (or completed Task<T>) instead.
Original issue reported on code.google.com by julian...@gmail.com on 4 Dec 2013 at 6:54
Original issue reported on code.google.com by
julian...@gmail.com
on 4 Dec 2013 at 6:54