public void ThenTheLineErrorReportShouldIncludeAnExceptionReportingThatTheExpectedExclamationMarkIsMissing(int errorCallNumber) { LineProcessor.ErrorReport call = this.lineProcessor.OnErrorCalls[errorCallNumber]; Assert.IsInstanceOf <ArgumentException>(call.Error); var e = (ArgumentException)call.Error; Assert.AreEqual("Invalid data. Expected '!' at sentence start", e.Message); }
public void ThenTheLineErrorReportShouldIncludeTheLineNumber(int errorCallNumber, int lineNumber) { LineProcessor.ErrorReport call = this.lineProcessor.OnErrorCalls[errorCallNumber]; Assert.AreEqual(lineNumber, call.LineNumber); }
public void ThenTheLineErrorReportShouldIncludeTheProblematicLine(int errorCallNumber, string line) { LineProcessor.ErrorReport call = this.lineProcessor.OnErrorCalls[errorCallNumber]; Assert.AreEqual(line, call.Line); }