i got a class that gets by argument a delegate.
This class invokes that delegate, and i want to unit test it with Moq.
how do i verify that this method was called ?
public interface IWithFOOMethod
{
void FooAlikeMethod(int number);
}
Mock myMock = new Mock();
A a = new A(myMock.Object.FooAlikeMethod);
myMock.Verify(call => call.Foo(It.IsAny()), Times.Once())