public void ShouldMakeTextItalicAndColored() { const string expected = "<Italic Foreground=\"" + Color + "\">" + Content + "</Italic>"; var actual = XamlFormattingUtil.Italic(Content, Color); Assert.AreEqual(expected, actual); }
public void ShouldMakeTextItalic() { const string expected = "<Italic>" + Content + "</Italic>"; var actual = XamlFormattingUtil.Italic(Content); Assert.AreEqual(expected, actual); }