public void AssertExpressionError(string message, int position, string expression, IDictionary <string, string> variables) { var oldStylizer = DefaultStylizer; DefaultStylizer = () => new TestStylizer(); message = TestStylizer.GetErrorMessage(message, expression, 3, position, null, 0); AssertExpressionError(message, expression, variables); DefaultStylizer = oldStylizer; }
public void AssertError(string message, string line, int lineNumber, int position, string call, int callLine, string input) { var oldStylizer = DefaultStylizer; DefaultStylizer = () => new TestStylizer(); message = TestStylizer.GetErrorMessage(message, line, lineNumber, position, call, callLine); AssertError(message, input); DefaultStylizer = oldStylizer; }