예제 #1
0
        public void PhraseModifierFormatTestStyledSpan()
        {
            string input              = "I'm %{color:red}unaware% of most soft drinks.";
            string expected           = "I'm <span style=\"color:red;\">unaware</span> of most soft drinks.";
            SpanPhraseBlockModifier f = new SpanPhraseBlockModifier();
            string actual             = FormatLine(f, input);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void PhraseModifierFormatTestSimpleSpan()
        {
            string input              = "I'm %unaware% of most soft drinks.";
            string expected           = "I'm <span>unaware</span> of most soft drinks.";
            SpanPhraseBlockModifier f = new SpanPhraseBlockModifier();
            string actual             = FormatLine(f, input);

            Assert.AreEqual(expected, actual);
        }