Пример #1
0
        public void DocumentsWithDifferentInnerXmlMustBeNotEqual()
        {
            using (var document = new DocxDocument(Resources.DocumentWithoutParagraph))
                using (var otherDocument = new DocxDocument(Resources.DocumentWithParagraph))
                {
                    var comparer = new DocxDocumentEqualityComparer();

                    Assert.Throws <AssertionException>(() => comparer.Equals(document, otherDocument));
                }
        }
 public void DocumentsWithDifferentInnerXmlMustBeNotEqual()
 {
     using (var document = new DocxDocument(Resources.DocumentWithoutParagraph))
     using (var otherDocument = new DocxDocument(Resources.DocumentWithParagraph))
     {
         var comparer = new DocxDocumentEqualityComparer();
         Assert.Throws<EqualException>(() => comparer.Equals(document, otherDocument));
     }
 }