Open dtchepak opened 5 years ago
Need to ensure this does not conflict with the existing
WhenCalled<T> When<T>(this T substitute, Func<T, Task> substituteCall)
overload of this method.
I think it does as Task is a class.
Another option is to remove the Func<T, Task> and do the type checking in this one.
Otherwise v6?
As raised in #449, it would be useful to support property getters in
When..Do
:From @zvirja's comment:
Need to ensure this does not conflict with the existing
WhenCalled<T> When<T>(this T substitute, Func<T, Task> substituteCall)
overload of this method.