public void SetUp() { string xml = @" <t:securityMetadata xmlns=""http://www.re-motion.org/Data/Mapping/1.0"" xmlns:t=""http://www.re-motion.org/Security/Metadata/1.0""> <t:classes> <t:class id=""Class1"" /> <t:class id=""7823-qwer-124"" name=""Class2"" /> </t:classes> <classes> <class id=""Class1""> <entity>class1</entity> </class> </classes> </t:securityMetadata>"; _document = new XmlDocument(); _document.LoadXml(xml); _converter = new NodeStackToXPathConverter(); _converter.IncludeNamespaces = false; }
public XmlDocumentSimilarConstraint(XmlDocument expected) : base(expected) { _nodeStackToXPathConverter = new NodeStackToXPathConverter(); _nodeStackToXPathConverter.IncludeNamespaces = true; }