Use constraints to do this.

On Thu, Oct 9, 2008 at 3:31 PM, chrissurfleet <[EMAIL PROTECTED]>wrote:

>
> I've been looking round the documentation for a while now but this is
> still royally confusing me. Its probably easy to clear up though.
>
> Heres a bit of code:
>
> XmlDocument xmlRequest = new XmlDocument();
> xmlRequest.LoadXml(Resources.ExampleRequest1);
>
> MockRepository mRepository = new MockRepository();
> IADPPurchaseOrderDataConvertor oConvertor =
> mRepository.StrictMock<IADPPurchaseOrderDataConvertor>();
>
> Expect.Call(oConvertor.GenerateRequestDetails(xmlRequest)).Return(objRequest);
> mRepository.ReplayAll();
>
> // Code that fires data into the mock
>
> mRepository.VerifyAll();
>
> Now, I can't compare the xmlRequest object with a straight Equals, in
> practice I need to check the DocumentElement.Name property in order to
> check it is the correct input. How can I do this?
>
> Im on .Net 2
>
> Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to