Пример #1
0
        public static void ValidateReturnsErrorWhenFileAttributeIsNotSpecified()
        {
            var           directive = new IncludeDirective(new DirectiveBlockStart(0), new DirectiveName(4, "include"), new Attribute[0], new BlockEnd(12));
            TemplateError error     = directive.Validate().Single();

            Assert.Contains("File", error.Message, StringComparison.OrdinalIgnoreCase);
        }
Пример #2
0
 public static void ValidateReturnsErrorWhenFileAttributeIsNotSpecified()
 {
     var directive = new IncludeDirective(new DirectiveBlockStart(0), new DirectiveName(4, "include"), new Attribute[0], new BlockEnd(12));
     TemplateError error = directive.Validate().Single();
     Assert.Contains("File", error.Message, StringComparison.OrdinalIgnoreCase);
 }