public void It_renders_its_child_parts() { var a = new TemplateDefinition("a"); a.Load(new Part[] { new LiteralText("b") }); var writer = new StringWriter(); var context = new RenderContext(new Template(), null, writer, null); a.Render(context); Assert.AreEqual("b", writer.GetStringBuilder().ToString()); }
public void It_renders_its_child_parts() { var a = new TemplateDefinition("a"); a.Load(new Part[] { new LiteralText("b") }); var writer = new StringWriter(); var context = new RenderContext(new Template(), null, writer, null); a.Render(context); Assert.AreEqual("b", writer.GetStringBuilder().ToString()); }