コード例 #1
0
        protected void TestCodeRefactoringAtLine(Document document, string expected, int line, int refactoringIndex = 0)
        {
            var locator = LineLocator.FromDocument(document, line);

            TestCodeRefactoring(document, expected, locator, refactoringIndex);
        }
コード例 #2
0
        protected void HasDiagnosticAtLine(Document document, string diagnosticId, int lineNumber)
        {
            var locator = LineLocator.FromDocument(document, lineNumber);

            HasDiagnostic(document, diagnosticId, locator);
        }