Example #1
0
 public void TransformDoesNotGenerateOutputWhenValidateReportsErrors()
 {
     using (var template = new FakeTemplate())
     {
         template.TransformedText = () => template.WriteLine(TestOutput);
         template.Validated       = () => template.Error(TestMessage);
         Assert.AreEqual(string.Empty, template.Transform());
     }
 }
Example #2
0
 public void TransformDoesNotGenerateOutputWhenValidateReportsErrors()
 {
     using (var template = new FakeTemplate())
     {
         template.TransformedText = () => template.WriteLine(TestOutput);
         template.Validated = () => template.Error(TestMessage);
         Assert.AreEqual(string.Empty, template.Transform());
     }
 }