Instead of trying to mock it, create an XmlNode using the usual mechanism (XmlDocument) run the code under test. Afterward, assert on the XmlNode values.
On Thu, Sep 17, 2009 at 12:31 AM, deltaoo <[email protected]>wrote: > > Hi > How can I mock XmlNode? > Say I have the following.. > > Public class someclass (XmlNode an_xml_node ){ > ….. > } > > XmlNode is an abstract class, but I can’t mock it cos the constructors > are internal (I think) > > I can’t change the constructor, and need a mock to test the methods > were called. > > … what options are there… > > Thanx > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
