I don't follow what the code below is trying to do. where does objRequest come from? What is it that your'e trying to test?
If you're ascribing to the "test one thing", you're already testing basically that the GenerateRequestDetails() method is called. Are you trying to test the the IADPPurchaseOrderDataConverter is doing it's job properly. I'm sorry but from the test and email it is not clear what you are trying to do On Thu, Oct 9, 2008 at 8:31 AM, 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 -~----------~----~----~----~------~----~------~--~---
