示例#1
0
        public void AssertStringEqualAndIdenticalToSelf()
        {
            string control = "<assert>true</assert>";
            string test    = "<assert>true</assert>";

            XmlAssert.XmlIdentical(control, test);
            XmlAssert.XmlEquals(control, test);
        }
示例#2
0
        public void AssertStringEqualAndIdenticalToSelf()
        {
            string control = _xmlTrueTest;
            string test    = _xmlTrueTest;

            XmlAssert.XmlIdentical(control, test);
            XmlAssert.XmlEquals(control, test);
        }
示例#3
0
        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));
            }
        }