How to use the AAA syntax to do an AssertWasCalled but ignore arguments
Posted
by Toran Billups
on Stack Overflow
See other posts from Stack Overflow
or by Toran Billups
Published on 2010-03-16T16:21:50Z
Indexed on
2010/03/16
16:31 UTC
Read the original article
Hit count: 495
I'm using the new AAA syntax and wanted to know the syntax to do the below and have the mock ignore the agruments.
mockAccount.AssertWasCalled(account => account.SetPassword("dsfdslkj"));
I think the below is how I would do this with the record/ replay model but I wanted to see if this could be done with AAA using 3.6
mockAccount.Expect(account => account.SetPassword("sdfdsf")).IgnoreArguments(); mockAccount.VerifyAllExpectations();
Thank you in advance
© Stack Overflow or respective owner