Exemplo n.º 1
0
        public void SegmentParser_UnescapeLiterals_2()
        {
            string escaped = "<ut Type=\"start\" RightEdge=\"angle\">&lt;f&quot;TimesNewRomanPSMT&quot;&gt;</ut>Effectively managing employee meals means balancing profit objectives with people objectives.";

            var result = SegmentParser.UnescapeLiterals(escaped);

            Assert.AreEqual("<ut Type=\"start\" RightEdge=\"angle\"><f\"TimesNewRomanPSMT\"></ut>Effectively managing employee meals means balancing profit objectives with people objectives.", result);
        }
Exemplo n.º 2
0
        public void SegmentParser_UnescapeLiterals_1()
        {
            string escaped = "some &amp; text with &lt;pseudo-tags&gt;";

            var result = SegmentParser.UnescapeLiterals(escaped);

            Assert.AreEqual(@"some & text with <pseudo-tags>", result);
        }