public void TestTemplate() { AddTemplate(TestTemplates.TestEngineTemplate); AddTemplate(TestTemplates.TestEngineTemplate_TestClassB); var outputWriter = _templateEngine.Process(new TestClassA { Name = "Mondop", BClasses = new TestClassB[] { new TestClassB { Name = "One" }, new TestClassB { Name = "Two" } } }); outputWriter.Output.Should().Be("Hello Mondop\r\nHello One\r\nHello Two"); }
public void Process_EmptyTemplate_returnsEmptyString() { string output = engine.Process(input); Assert.AreEqual(string.Empty, output); }