public static void GetDescriptionReturnsDescriptionOfDirective()
 {
     var directive = new IncludeDirective(new DirectiveBlockStart(0), new DirectiveName(4, "include"), new Attribute[0], new BlockEnd(12));
     string description;
     Span applicableTo;
     Assert.True(directive.TryGetDescription(4, out description, out applicableTo));            
     Assert.Contains("text from another file", description, StringComparison.OrdinalIgnoreCase);
 }
        public static void GetDescriptionReturnsDescriptionOfDirective()
        {
            var    directive = new IncludeDirective(new DirectiveBlockStart(0), new DirectiveName(4, "include"), new Attribute[0], new BlockEnd(12));
            string description;
            Span   applicableTo;

            Assert.True(directive.TryGetDescription(4, out description, out applicableTo));
            Assert.Contains("text from another file", description, StringComparison.OrdinalIgnoreCase);
        }
 public static void GetDescriptionReturnsDescriptionOfNameAttribute()
 {
     var directive = new IncludeDirective(
         new DirectiveBlockStart(0),
         new DirectiveName(4, "include"),
         new[] { new Attribute(new AttributeName(12, "file"), new Equals(16), new DoubleQuote(17), new AttributeValue(18, "template.tt"), new DoubleQuote(29)) },
         new BlockEnd(30));
     string description;
     Span applicableTo;
     Assert.True(directive.TryGetDescription(12, out description, out applicableTo));
     Assert.Contains("path to the included file", description, StringComparison.OrdinalIgnoreCase);
 }
        public static void GetDescriptionReturnsDescriptionOfNameAttribute()
        {
            var directive = new IncludeDirective(
                new DirectiveBlockStart(0),
                new DirectiveName(4, "include"),
                new[] { new Attribute(new AttributeName(12, "file"), new Equals(16), new DoubleQuote(17), new AttributeValue(18, "template.tt"), new DoubleQuote(29)) },
                new BlockEnd(30));
            string description;
            Span   applicableTo;

            Assert.True(directive.TryGetDescription(12, out description, out applicableTo));
            Assert.Contains("path to the included file", description, StringComparison.OrdinalIgnoreCase);
        }