Esempio n. 1
0
 [Test] public void AssertXPathExistsFailsForNonExistentXPath()
 {
     try {
         XmlAssert.XPathExists("//star[@name='alpha centauri']",
                               MY_SOLAR_SYSTEM);
         Assert.Fail("Expected assertion failure");
     } catch (AssertionException e) {
         AvoidUnusedVariableCompilerWarning(e);
     }
 }
Esempio n. 2
0
 [Test] public void AssertXPathExistsWorksForExistentXPath()
 {
     XmlAssert.XPathExists("//planet[@name='Earth']",
                           MY_SOLAR_SYSTEM);
 }