protected void ShouldRaiseError(string templateName, HandlebarsTypeErrorKind kind)
 {
     Assert.IsTrue(compiledCode[templateName].Item2.OfType <HandlebarsTypeError>().Any(x => x.Kind.Equals(kind)));
 }
Ejemplo n.º 2
0
 public HandlebarsTypeError(string message, HandlebarsTypeErrorKind kind, int line, int column) : base(message, line, column)
 {
     Kind = kind;
 }
Ejemplo n.º 3
0
 internal void AddTypeError(string message, HandlebarsTypeErrorKind kind)
 {
   Errors.Add(new HandlebarsTypeError(message, kind, line, column));
 }
Ejemplo n.º 4
0
 internal void AddTypeError(string message, HandlebarsTypeErrorKind kind)
 {
     Errors.Add(new HandlebarsTypeError(message, kind, line, column));
 }
 public HandlebarsTypeError(string message, HandlebarsTypeErrorKind kind, int line, int column)
     : base(message, line, column)
 {
     Kind = kind;
 }