public void Error(Action <ValidationErrorAssertion> configure)
        {
            var assertion = new ValidationErrorAssertion();

            configure(assertion);
            _assertions.Add(assertion);
        }
        public void Error(string message, int line, int column)
        {
            var assertion = new ValidationErrorAssertion
            {
                Message = message,
            };

            assertion.Loc(line, column);
            _assertions.Add(assertion);
        }
Exemplo n.º 3
0
        public void Error(string message, int?line = null, int?column = null)
        {
            var assertion = new ValidationErrorAssertion
            {
                Message = message,
                Line    = line,
                Column  = column
            };

            _assertions.Add(assertion);
        }
 public void Error(string message, int? line = null, int? column = null)
 {
     var assertion = new ValidationErrorAssertion
     {
         Message = message,
     };
     if (line.HasValue)
     {
         assertion.Loc(line.Value, column.Value);
     }
     _assertions.Add(assertion);
 }
        public void Error(string message, int?line = null, int?column = null)
        {
            var assertion = new ValidationErrorAssertion
            {
                Message = message,
            };

            if (line.HasValue)
            {
                assertion.Loc(line.Value, column.Value);
            }
            _assertions.Add(assertion);
        }
 public void Error(Action<ValidationErrorAssertion> configure)
 {
     var assertion = new ValidationErrorAssertion();
     configure(assertion);
     _assertions.Add(assertion);
 }