public void CheckPassThroughOfContentNoXmlEscaping() { var tag = new Marker(); tag.Id = new TemplateAttribute(new ParsedTemplate(new FileBasedResourceLocator(), new ExpressionPart(new Constant("id")))); tag.Body = new TemplateAttribute(new ParsedTemplate(new FileBasedResourceLocator(), new ExpressionPart(new Constant("body&body")))); Assert.That(tag.Evaluate(new TagModel(this)), Is.EqualTo("body&body")); }
public void CheckNoBody() { var tag = new Marker(); tag.Id = new TemplateAttribute(new ParsedTemplate(new FileBasedResourceLocator(), new ExpressionPart(new Constant("id")))); Assert.That(tag.Evaluate(new TagModel(this)), Is.EqualTo(String.Empty)); }