73 references to VerifyCodeFixAsync
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (73)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArgumentsTests.Fixer.cs (5)
19await VerifyCS.VerifyCodeFixAsync(@" 120await VerifyCS.VerifyCodeFixAsync(@" 164await VerifyCS.VerifyCodeFixAsync(@" 208await VerifyCS.VerifyCodeFixAsync(@" 250await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscoresTests.cs (3)
65await VerifyCS.VerifyCodeFixAsync(@" 104await VerifyCS.VerifyCodeFixAsync(@" 585await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternatesTests.Fixer.cs (7)
21await VerifyCS.VerifyCodeFixAsync(@" 44await VerifyCS.VerifyCodeFixAsync(@" 67await VerifyCS.VerifyCodeFixAsync(@" 95await VerifyCS.VerifyCodeFixAsync(@" 118await VerifyCS.VerifyCodeFixAsync(@" 146await VerifyCS.VerifyCodeFixAsync(@" 169await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypesTests.Fixer.cs (3)
61await VerifyCS.VerifyCodeFixAsync(@" 105await VerifyCS.VerifyCodeFixAsync(@" 154await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypesTests.Fixer.cs (4)
20await VerifyCS.VerifyCodeFixAsync(@" 103await VerifyCS.VerifyCodeFixAsync(@" 171await VerifyCS.VerifyCodeFixAsync(@" 264await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposableTests.cs (2)
718await VerifyCS.VerifyCodeFixAsync(@" 791await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RethrowToPreserveStackDetailsTests.Fixer.cs (1)
19await VerifyCS.VerifyCodeFixAsync(
Microsoft.CodeQuality.Analyzers\QualityGuidelines\UseLiteralsWhereAppropriateTests.Fixer.cs (4)
20await VerifyCS.VerifyCodeFixAsync(@" 50await VerifyCS.VerifyCodeFixAsync(@" 86await VerifyCS.VerifyCodeFixAsync(@" 117await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Performance\PreferCountOverAnyTests.cs (5)
43return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 96return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 147return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 295return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 346return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode);
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryGetValueMethodsTests.cs (2)
1736return VerifyCS.VerifyCodeFixAsync(code, diagnostic, fixedCode); 1938return VerifyCS.VerifyCodeFixAsync(code, result, fixedCode);
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverAnyTests.cs (6)
42return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 94return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 144return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 258return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 308return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 412return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode);
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverCountTests.cs (6)
91await VerifyCS.VerifyCodeFixAsync( 161return VerifyCS.VerifyCodeFixAsync( 196=> VerifyCS.VerifyCodeFixAsync( 223=> VerifyCS.VerifyCodeFixAsync( 380=> VerifyCS.VerifyCodeFixAsync( 422=> VerifyCS.VerifyCodeFixAsync(
Microsoft.NetCore.Analyzers\Performance\PreferLengthOverAnyTests.cs (4)
44return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 96return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 146return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode); 321return VerifyCS.VerifyCodeFixAsync(code, ExpectedDiagnostic, fixedCode);
Microsoft.NetCore.Analyzers\Performance\UsePropertyInsteadOfCountMethodWhenAvailableTests.cs (8)
201=> VerifyCS.VerifyCodeFixAsync( 231=> VerifyCS.VerifyCodeFixAsync( 369=> VerifyCS.VerifyCodeFixAsync( 418=> VerifyCS.VerifyCodeFixAsync( 489=> VerifyCS.VerifyCodeFixAsync( 522=> VerifyCS.VerifyCodeFixAsync( 559=> VerifyCS.VerifyCodeFixAsync( 610=> VerifyCS.VerifyCodeFixAsync(
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocationsTests.cs (2)
624await VerifyCS.VerifyCodeFixAsync( 727await VerifyCS.VerifyCodeFixAsync(
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectlyTests.cs (10)
111await VerifyCS.VerifyCodeFixAsync(@" 145await VerifyCS.VerifyCodeFixAsync(@" 179await VerifyCS.VerifyCodeFixAsync(@" 201await VerifyCS.VerifyCodeFixAsync(@" 222await VerifyCS.VerifyCodeFixAsync(@" 292await VerifyCS.VerifyCodeFixAsync(@" 370await VerifyCS.VerifyCodeFixAsync(@" 404await VerifyCS.VerifyCodeFixAsync(@" 486await VerifyCS.VerifyCodeFixAsync(@" 648await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompareTests.cs (1)
132return VerifyCS.VerifyCodeFixAsync(testCode, VerifyCS.Diagnostic(Rule).WithLocation(0), fixedCode);