private void AssertNoMatch(string text) { var parser = new BuildOutputParser(); var result = parser.ParseLine(text); Assert.IsNull(result); }
private static void AssertIsMatch(string text, string filename, int line, int column, int index, int length) { var parser = new BuildOutputParser(); var result = parser.ParseLine(text); Assert.IsNotNull(result); Assert.AreEqual(filename, result.FileName); Assert.AreEqual(line, result.LineNumber); Assert.AreEqual(column, result.ColumnNumber); if (index >= 0) { Assert.AreEqual(index, result.Index); } if (length >= 0) { Assert.AreEqual(length, result.Length); } }