I am new to NMock2 and Moq frameworks. I need some help converting NMock2 code in my current project to Moq code:
var myMock= myMockery.NewMock<IMyInterface>();
var myRoleMock = myMockery.NewMock<IRoleInterface>();
var acceptAction = new MyAcceptAction(myRoleMock);
Stub.On(myMock).Method("Accept").Will(acceptAction);
I am also not clear what Will() in the above code stands for. I do have an idea that Will(Return.Value(something)) in NMock2 is equivalent to Returns(something) in Moq.
So are Will(something) and Will(Return.Value(something)) the same?