Easy.Test/Text/Highlight/MarkdownTest.cs
/// <summary>
/// Tests text with nothig to highlight
/// </summary>
Tests text with nothig to highlight
Tests text with nothig to highlight
[TestMethod]
        public void TestNothingToHighlight()
        {
            _range.Text = "This is some text that should not get highlighted.";
            Assert.AreEqual(FormatEffect.Off, _range.CharacterFormat.Italic);
            Assert.AreEqual(FormatEffect.Off, _range.CharacterFormat.Bold);
            _highlighter.Highlight();
            Assert.AreEqual(FormatEffect.Off, _range.CharacterFormat.Italic);
            Assert.AreEqual(FormatEffect.Off, _range.CharacterFormat.Bold);
        }
[ TestMethod ] public void TestNothingToHighlight ( ) { _range . Text = " " ; Assert . AreEqual ( FormatEffect . Off , _range . CharacterFormat . Italic ) ; Assert . AreEqual ( FormatEffect . Off , _range . CharacterFormat . Bold ) ; _highlighter . Highlight ( ) ; Assert . AreEqual ( FormatEffect . Off , _range . CharacterFormat . Italic ) ; Assert . AreEqual ( FormatEffect . Off , _range . CharacterFormat . Bold ) ; }
Tests text with nothig to highlight
Tests text with nothig to highlight