This issue is an umbrella issue. We will only close it when every code fix provider has tests on their fix all actions.
There are several code fix providers to test. If you want to work on one of them just comment on this issue.
Most code fix providers are not having their fix all actions tested. Also, most of them use the BatchFixer. We need to write tests to these code fix providers.
Bellow is an example of a Code Fix provider test from RemoveUnreachableCodeTest:
[Fact]
public async void FixAllProjectUnreacheableCode()
{
const string source1 = @"
class Foo
{
void Method()
{
return;
var a = 1;
var b = 1;
}
}";
const string source2 = @"
class Foo2
{
void Method()
{
return;
var a = 1;
var b = 1;
}
}";
const string fixtest1 = @"
class Foo
{
void Method()
{
return;
}
}";
const string fixtest2 = @"
class Foo2
{
void Method()
{
return;
}
}";
await VerifyCSharpFixAllAsync(new[] { source1, source2 }, new[] { fixtest1, fixtest2 });
Bellow are the code fix provider that need fixing when this issue was opened. They are ordered by code coverage, so working on the top ones is better.
This issue is an umbrella issue. We will only close it when every code fix provider has tests on their fix all actions.
There are several code fix providers to test. If you want to work on one of them just comment on this issue.
Most code fix providers are not having their fix all actions tested. Also, most of them use the
BatchFixer. We need to write tests to these code fix providers.Bellow is an example of a Code Fix provider test from
RemoveUnreachableCodeTest:Bellow are the code fix provider that need fixing when this issue was opened. They are ordered by code coverage, so working on the top ones is better.