public void ToString_ReturnsExpected(HtmlText text, string expected) { Assert.Equal(expected, text.ToString()); Assert.Equal(expected, text.Serialize()); Assert.Equal(expected, text.Serialize(HtmlSerializeOptions.None)); Assert.Equal(expected, text.Serialize(HtmlSerializeOptions.NoFormatting)); }
public void ToString_ReturnsExpected(HtmlText text, string expected) { Assert.Equal(expected, text.ToString()); Assert.Equal(expected, text.Serialize()); Assert.Equal(expected, text.Serialize(HtmlSerializeOptions.None)); Assert.Equal(expected, text.Serialize(HtmlSerializeOptions.NoFormatting)); }