public void FixAllOneByOneTwoErrorsCorrectFix() { var code = @" namespace RoslynSandbox { class Foo { private readonly int ↓_value1; private readonly int ↓_value2; } }"; var fixedCode = @" namespace RoslynSandbox { class Foo { private readonly int value1; private readonly int value2; } }"; AnalyzerAssert.MetadataReferences.Add(MetadataReference.CreateFromFile(typeof(int).Assembly.Location)); AnalyzerAssert.FixAllOneByOne <FieldNameMustNotBeginWithUnderscore, DontUseUnderscoreCodeFixProvider>(code, fixedCode); }