Hi, I have a private method that should return true.I m using Nunit and MOQ So i have as follows:
[TestFixture]
public class CustomerTestFixture
{
var customerMock=new Mock<ICustomer>()
customerMock.Protected().Setup<bool>("CanTestPrivateMethod").Returns(true);
// How do I assert it now since I cannot do
customerMock.Verify //Verify does not exists.
}
Could not find anything on google that tells you how to test it. as you can see I can do a set up for it but cannot assert.
Am I missing the obvious?
Thanks a lot