public void TestProcessDocument() { XmlDocument doc = new XmlDocument(); doc.LoadXml("<apispec></apispec>"); csap.ProcessDocument(doc); Assert.AreNotEqual("<apispec></apispec>", doc.DocumentElement.OuterXml, "ProcessDocument should write the api specification."); }
public void TestProcessDocument1() { rep.TypePrefixes = new string[] { "NoSuchPrefix" }; csap = new CSharpAPIProcessor(rep); XmlDocument doc = new XmlDocument(); doc.LoadXml("<apispec></apispec>"); csap.ProcessDocument(doc); Assert.AreEqual("<apispec></apispec>", doc.DocumentElement.OuterXml, "No action must be taken."); }