public void AssertStringEqualAndIdenticalToSelf() { string control = "<assert>true</assert>"; string test = "<assert>true</assert>"; XmlAssert.XmlIdentical(control, test); XmlAssert.XmlEquals(control, test); }
public void AssertStringEqualAndIdenticalToSelf() { string control = _xmlTrueTest; string test = _xmlTrueTest; XmlAssert.XmlIdentical(control, test); XmlAssert.XmlEquals(control, test); }
public void AssertXmlIdenticalUsesOptionalDescription() { string description = "An Optional Description"; try { XmlDiff diff = new XmlDiff(new XmlInput("<a/>"), new XmlInput("<b/>"), new DiffConfiguration(description)); XmlAssert.XmlIdentical(diff); } catch (AssertionException e) { Assert.AreEqual(true, e.Message.StartsWith(description)); } }