Hi,
First of all, I'm newbie with Just Mock and after a few weeks working with it I think you are doing a great job. So, congratulations!!
Maybe this question is already answered but, if so, I didn't find it. I'd like to intercept a call to a generi method similar to:
Now I want to arrange a MyClass instance so I can assert that the method has been call only once for an specific type and never for any other type. I'm tryig to do something similar to:
So I can assert the generic method is never called
First of all, I'm newbie with Just Mock and after a few weeks working with it I think you are doing a great job. So, congratulations!!
Maybe this question is already answered but, if so, I didn't find it. I'd like to intercept a call to a generi method similar to:
public class MyClass
{
public void MyMethod<
T
>()
{
//
}
}
Now I want to arrange a MyClass instance so I can assert that the method has been call only once for an specific type and never for any other type. I'm tryig to do something similar to:
var service = Mock.Create<
MyClass
>();
Mock.Arrange(() => service.MyMethod<
T
>()).OccursNever();
So I can assert the generic method is never called