Hi everyone
I'm trying to ensure that a test will fail when a certain method is called. I have something like this:
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
myClass.DoNotCallThisMethod();
recorder.FailWhenCalled();
}
When I run the test, I get a VerifyException saying the method has one more expected call. My question is, is my DoNotCallThisMethod() still being expected to be called when using recorder.FailWhenCalled()?
Thanks,
Jonathan Khor