void GetLineAndColumn(string breakpointMarker, int offset, string statement, out int line, out int col, ITextFile file) { int i = file.Text.IndexOf("/*" + breakpointMarker + "*/", StringComparison.Ordinal); if (i == -1) { Assert.Fail("Break marker not found: " + breakpointMarker + " in " + file.Name); } file.GetLineColumnFromPosition(i, out line, out col); line += offset; if (statement != null) { int lineStartPosition = file.GetPositionFromLineColumn(line, 1); string lineText = file.GetText(lineStartPosition, lineStartPosition + file.GetLineLength(line)); col = lineText.IndexOf(statement, StringComparison.Ordinal) + 1; if (col == 0) { Assert.Fail("Failed to find statement:" + statement + " at " + file.Name + "(" + line + ")"); } } else { col = 1; } }