protected void TestCodeRefactoringAtLine(Document document, string expected, int line, int refactoringIndex = 0) { var locator = LineLocator.FromDocument(document, line); TestCodeRefactoring(document, expected, locator, refactoringIndex); }
protected void HasDiagnosticAtLine(Document document, string diagnosticId, int lineNumber) { var locator = LineLocator.FromDocument(document, lineNumber); HasDiagnostic(document, diagnosticId, locator); }