Beispiel #1
0
        public void SimilarModifications_ElementsEquality()
        {
            var paragOne = new Paragraph();
            var paragTwo = new Paragraph();

            paragOne.Should().Be(paragTwo);

            paragOne.AddContent(new Emphasis().AddTextContent("test text content"));
            paragOne.Should().NotBe(paragTwo);

            paragTwo.AddContent(new Emphasis().AddTextContent("test text content"));
            paragOne.Should().Be(paragTwo);

            paragOne.AddAttribute(new Fb2Attribute(AttributeNames.Id, "testId"));
            paragOne.Should().NotBe(paragTwo);

            paragTwo.AddAttribute(new Fb2Attribute(AttributeNames.Id, "testId"));
            paragOne.Should().Be(paragTwo);
        }