public void DeepEquals_returns_expected_value() { var instance1 = new MdCompositeSpan("content"); var instance2 = new MdCompositeSpan("content"); var instance3 = new MdCompositeSpan("other", "content"); Assert.True(instance1.DeepEquals(instance1)); Assert.True(instance1.DeepEquals(instance2)); Assert.False(instance1.DeepEquals(null)); Assert.False(instance1.DeepEquals(instance3)); Assert.False(instance1.DeepEquals(new MdTextSpan(""))); }
public void Text_property_is_converted_to_CompositeSpan_when_required_02() { var paragraph = new MdParagraph("Text", "Text"); var expected = new MdCompositeSpan(new MdTextSpan("Text"), new MdTextSpan("Text")); Assert.True(expected.DeepEquals(paragraph.Text)); }