public static void badValue( this ArgumentsOfCorrectType rule, ValidationTestConfig config, string argName, string typeName, string value, int line, int column, string errors = null) { errors ??= $"Expected type '{typeName}', found {value}."; config.Error( ArgumentsOfCorrectTypeError.BadValueMessage(argName, errors), line, column); }
public static void badValue( this ArgumentsOfCorrectType rule, ValidationTestConfig config, string argName, string typeName, string value, int line, int column, IEnumerable <string> errors = null) { errors ??= new[] { $"Expected type \"{typeName}\", found {value}." }; config.Error( ArgumentsOfCorrectTypeError.BadValueMessage(argName, value, errors), line, column); }