public void TestParse_LiteralIsHtmlEncoded() { string value = "\""; var actual = new UntypedMarkupParser(null).ParseMarkup(value, null); Assert.AreEqual(actual, new LiteralFragment(""")); }
public void TestParse_NewCodeSyntaxWorksNoTrim() { string value = "{= Some Code() }"; var actual = new UntypedMarkupParser(null).ParseMarkup(value, null); Assert.AreEqual(actual, new CodeExpressionFragment("Some Code()")); }
public void TestParse_EmptyLiteralWorks() { string value = ""; var actual = new UntypedMarkupParser(null).ParseMarkup(value, null); Assert.AreEqual(actual, new LiteralFragment("")); }