public void WithPositionIndicated() { var testCode = @" class ↓Foo { }"; var fixedCode = @" class FOO { }"; var refactoring = new ClassNameToUpperCaseRefactoringProvider(); AnalyzerAssert.Refactoring(refactoring, testCode, fixedCode); AnalyzerAssert.Refactoring(refactoring, testCode, "To uppercase", fixedCode); }
public void WithSpan() { var testCode = @" class Foo { }"; var fixedCode = @" class FOO { }"; var refactoring = new ClassNameToUpperCaseRefactoringProvider(); AnalyzerAssert.Refactoring(refactoring, testCode, new TextSpan(8, 3), fixedCode); AnalyzerAssert.Refactoring(refactoring, testCode, new TextSpan(8, 3), "To uppercase", fixedCode); }