In my unit test instead of IgnoreArguments, I want to use some partial matches of logic in Rhino's tests. How to do this?
Thanks, John
// set fooStub = MockRepository .GenerateStub & lt; IFoo & gt; (); // act fooStub.Bar ("arg1", "arg2", 3); // assert fooStub.AssertWasCalled (x = & gt; x.Bar (Arg & lt; string & gt; .Is.Equal ("arg1"), Arg & lt; string & gt; .Is.Anything, Arg & lt ; Int> .Is.Equal (3)));
No comments:
Post a Comment