private static void AssertFullPathMatch(string text, string filename, int line, int column, int index = -1, int length = -1) { var parser = new BuildOutputParser(); var result = parser.ParseFullPath(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); }
private void AssertNoMatch(string text) { var parser = new BuildOutputParser(); var result = parser.ParseFullPath(text); Assert.IsNull(result); }