Sorry, I meant a stand-alone, failing unit test. Something I can plug into a VS2010 solution and compile/run (without external dependencies on your objects).
Thanks. --- Patrick Steele http://weblogs.asp.net/psteele On Tue, Aug 3, 2010 at 10:58 AM, Stian A. Fagereng <[email protected]> wrote: > Here is an example of a rewrite I found necessary. > > Failing with System.Reflection.AmbiguousMatchException : Ambiguous > match found. > > [Test] > public void callRequestDTOShouldHaveIssueRow() > { > this.putCallServiceMock.AssertWasCalled(m => > m.getCallPossibleDocument(Arg<CallRequestDTO>.Matches(o => > o.IssueRow.IssueID == this.issueRow.IssueID))); > } > > The test today: > [Test] > public void callRequestDTOShouldHaveIssueRow() > { > Func<CallRequestDTO, bool> checkArgs = dto => > dto.IssueRow.IssueID == this.issueRow.IssueID; > this.putCallServiceMock.AssertWasCalled(m => > m.getCallPossibleDocument(null), option => > option.Callback(checkArgs)); > } > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
