Hi,
Is it possible to delay verification of arguments on the recordexpectations.
I'm looking for something like:
IQueryDns dns = RecorderManager.CreateMockedObject<IQueryDns>();
using (RecordExpectations recorder = new RecordExpectations())
{
recorder.ExpectAndReturn(dns.LookupPtr(_IpAdddress), domainList).CheckArguments();
recorder.ValidateArgsOnVerify = true; // This is what I want
}
TestClass target = new TestClass(dns);
target.Run();
RecorderManager.Verify(); //This is what I want
The issue I'm facing is because the call to LookupPtr is enclosed in a try catch block in the code and the realtime check is cought in this block so I need to delay the verification.
Currently I'm using a work around with reflective mocks to do the delayed verification but it would be nice to be able to do this in Nautral mocks.
Is this possible?
brgds
Martin