464 references to VerifyCodeFixAsync
Microsoft.CodeAnalysis.Analyzers.UnitTests (15)
FixAnalyzers\FixerWithFixAllAnalyzerTests.Fixer.cs (4)
22=> VerifyCS.VerifyCodeFixAsync(""" 81=> VerifyCS.VerifyCodeFixAsync(""" 195await VerifyCS.VerifyCodeFixAsync(source, source); 200=> VerifyCS.VerifyCodeFixAsync("""
MetaAnalyzers\ConfigureGeneratedCodeAnalysisAnalyzerTests.cs (2)
21=> VerifyCS.VerifyCodeFixAsync(""" 132=> VerifyCS.VerifyCodeFixAsync("""
MetaAnalyzers\EnableConcurrentExecutionAnalyzerTests.cs (2)
21=> VerifyCS.VerifyCodeFixAsync(""" 132=> VerifyCS.VerifyCodeFixAsync("""
MetaAnalyzers\PreferIsKindAnalyzerTests.cs (6)
32await VerifyCS.VerifyCodeFixAsync($$""" 91=> VerifyCS.VerifyCodeFixAsync(""" 148await VerifyCS.VerifyCodeFixAsync($$""" 365await VerifyCS.VerifyCodeFixAsync(source, source); 394=> VerifyCS.VerifyCodeFixAsync(""" 459await VerifyCS.VerifyCodeFixAsync(source, source);
UseReturnValueFromImmutableObjectMethodTests.cs (1)
184await VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (433)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AbstractTypesShouldNotHaveConstructorsTests.cs (6)
36await VerifyCS.VerifyCodeFixAsync(code, fix); 68await VerifyCS.VerifyCodeFixAsync(code, code); 94await VerifyCS.VerifyCodeFixAsync(code, code); 121await VerifyCS.VerifyCodeFixAsync(code, code); 167await VerifyCS.VerifyCodeFixAsync(code, fix); 204await VerifyCS.VerifyCodeFixAsync(code, code);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DeclareTypesInNamespacesTests.cs (4)
25await VerifyCS.VerifyCodeFixAsync(csCode, csCode); 42await VerifyCS.VerifyCodeFixAsync(csCode, csCode); 61await VerifyCS.VerifyCodeFixAsync(csCode, csCode); 82await VerifyCS.VerifyCodeFixAsync(csCode, csCode);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDirectlyAwaitATaskTests.cs (6)
97await VerifyCS.VerifyCodeFixAsync(code, fixedCode); 308await VerifyCS.VerifyCodeFixAsync(code, code); 411await VerifyCS.VerifyCodeFixAsync(code, fixedCode); 495await VerifyCS.VerifyCodeFixAsync(code, fixedCode); 571await VerifyCS.VerifyCodeFixAsync(code, fixedCode); 742await VerifyCS.VerifyCodeFixAsync(code, fixedCode);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumStorageShouldBeInt32Tests.Fixer.cs (2)
42await VerifyCS.VerifyCodeFixAsync(code, fix); 70await VerifyCS.VerifyCodeFixAsync(code, fix);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumWithFlagsAttributeTests.Fixer.cs (4)
56await VerifyCS.VerifyCodeFixAsync(code, expected); 127await VerifyCS.VerifyCodeFixAsync(code, expected); 204await VerifyCS.VerifyCodeFixAsync(code, expected); 230await VerifyCS.VerifyCodeFixAsync(code, expected);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzerTests.Fixer.cs (5)
16await VerifyCS.VerifyCodeFixAsync(@" 51await VerifyCS.VerifyCodeFixAsync(@" 82await VerifyCS.VerifyCodeFixAsync(@" 113await VerifyCS.VerifyCodeFixAsync(@" 144await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublicTests.Fixer.cs (2)
33await VerifyCS.VerifyCodeFixAsync(original, expected); 59await VerifyCS.VerifyCodeFixAsync(original, expected);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructorsTests.Fixer.cs (3)
164await VerifyCS.VerifyCodeFixAsync(code, fix); 201await VerifyCS.VerifyCodeFixAsync(code, fix); 238await VerifyCS.VerifyCodeFixAsync(code, fix);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypesTests.Fixer.cs (4)
111await VerifyCS.VerifyCodeFixAsync(code, expectedFixedCode); 176await VerifyCS.VerifyCodeFixAsync(code, expectedFixedCode); 584await VerifyCS.VerifyCodeFixAsync(code, expectedFixedCode); 657await VerifyCS.VerifyCodeFixAsync(code, expectedFixedCode);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloadsTests.Fixer.cs (7)
19await VerifyCS.VerifyCodeFixAsync( 39await VerifyCS.VerifyCodeFixAsync( 67await VerifyCS.VerifyCodeFixAsync( 87await VerifyCS.VerifyCodeFixAsync( 107await VerifyCS.VerifyCodeFixAsync( 127await VerifyCS.VerifyCodeFixAsync( 147await VerifyCS.VerifyCodeFixAsync(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEqualsTests.Fixer.cs (2)
19await VerifyCS.VerifyCodeFixAsync(@" 89await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ParameterNamesShouldMatchBaseDeclarationTests.Fixer.cs (12)
20await VerifyCS.VerifyCodeFixAsync( 40await VerifyCS.VerifyCodeFixAsync( 60await VerifyCS.VerifyCodeFixAsync( 128await VerifyCS.VerifyCodeFixAsync( 148await VerifyCS.VerifyCodeFixAsync( 168await VerifyCS.VerifyCodeFixAsync( 245await VerifyCS.VerifyCodeFixAsync(source, source); 256await VerifyCS.VerifyCodeFixAsync(source, source); 267await VerifyCS.VerifyCodeFixAsync(source, source); 321await VerifyCS.VerifyCodeFixAsync( 383await VerifyCS.VerifyCodeFixAsync( 449await VerifyCS.VerifyCodeFixAsync(@"public interface ITest1
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\StaticHolderTypeTests.Fixer.cs (6)
30await VerifyCS.VerifyCodeFixAsync(Code, FixedCode); 51await VerifyCS.VerifyCodeFixAsync(Code, FixedCode); 72await VerifyCS.VerifyCodeFixAsync(Code, FixedCode); 93await VerifyCS.VerifyCodeFixAsync(Code, FixedCode); 124await VerifyCS.VerifyCodeFixAsync(Code, FixedCode); 148await VerifyCS.VerifyCodeFixAsync(Code, FixedCode);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposableTests.cs (8)
46await VerifyCS.VerifyCodeFixAsync(@" 102await VerifyCS.VerifyCodeFixAsync(@" 174await VerifyCS.VerifyCodeFixAsync(@" 254await VerifyCS.VerifyCodeFixAsync(@" 337await VerifyCS.VerifyCodeFixAsync(@" 956await VerifyCS.VerifyCodeFixAsync(@" 1035await VerifyCS.VerifyCodeFixAsync(@" 1068await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriParametersShouldNotBeStringsTests.Fixer.cs (1)
42await VerifyCS.VerifyCodeFixAsync(code, fix);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidDeadConditionalCode_ValueContentAnalysis.cs (1)
3175await VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEndTests.cs (29)
46await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 78await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 114await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 150await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 186await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 220await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 252await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 288await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 324await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 352await VerifyCS.VerifyCodeFixAsync(source, source); 378await VerifyCS.VerifyCodeFixAsync(source, source); 410await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 431await VerifyCS.VerifyCodeFixAsync(source, source); 483await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 511await VerifyCS.VerifyCodeFixAsync(source, source); 532await VerifyCS.VerifyCodeFixAsync(source, source); 556await VerifyCS.VerifyCodeFixAsync(source, source); 580await VerifyCS.VerifyCodeFixAsync(source, source); 603await VerifyCS.VerifyCodeFixAsync(source, source); 624await VerifyCS.VerifyCodeFixAsync(source, source); 648await VerifyCS.VerifyCodeFixAsync(source, source); 669await VerifyCS.VerifyCodeFixAsync(source, source); 701await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 733await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 769await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 800await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 831await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 864await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 890await VerifyCS.VerifyCodeFixAsync(source, fixedSource);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFieldsTests.Fixer.cs (1)
19await VerifyCS.VerifyCodeFixAsync(
Microsoft.CodeQuality.Analyzers\Maintainability\UseNameOfInPlaceOfStringTests.cs (15)
341await VerifyCS.VerifyCodeFixAsync(@" 385await VerifyCS.VerifyCodeFixAsync(@" 441await VerifyCS.VerifyCodeFixAsync(@" 519await VerifyCS.VerifyCodeFixAsync(@" 541await VerifyCS.VerifyCodeFixAsync(@" 597await VerifyCS.VerifyCodeFixAsync(@" 627await VerifyCS.VerifyCodeFixAsync(@" 657await VerifyCS.VerifyCodeFixAsync(@" 681await VerifyCS.VerifyCodeFixAsync(@" 705await VerifyCS.VerifyCodeFixAsync(@" 729await VerifyCS.VerifyCodeFixAsync(@" 759await VerifyCS.VerifyCodeFixAsync(@" 789await VerifyCS.VerifyCodeFixAsync(@" 825await VerifyCS.VerifyCodeFixAsync(@" 848await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidDuplicateElementInitializationTests.cs (11)
30await VerifyCS.VerifyCodeFixAsync(@" 61await VerifyCS.VerifyCodeFixAsync(@" 92await VerifyCS.VerifyCodeFixAsync(@" 123await VerifyCS.VerifyCodeFixAsync(@" 154await VerifyCS.VerifyCodeFixAsync(@" 185await VerifyCS.VerifyCodeFixAsync(@" 236await VerifyCS.VerifyCodeFixAsync(@" 287await VerifyCS.VerifyCodeFixAsync(@" 338await VerifyCS.VerifyCodeFixAsync(@" 390await VerifyCS.VerifyCodeFixAsync(@" 442await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStaticTests.Fixer.cs (10)
20await VerifyCS.VerifyCodeFixAsync(@" 190await VerifyCS.VerifyCodeFixAsync(@" 294await VerifyCS.VerifyCodeFixAsync(@" 374await VerifyCS.VerifyCodeFixAsync(@" 435await VerifyCS.VerifyCodeFixAsync(@" 702await VerifyCS.VerifyCodeFixAsync(@" 768await VerifyCS.VerifyCodeFixAsync(@" 827await VerifyCS.VerifyCodeFixAsync(@" 1305await VerifyCS.VerifyCodeFixAsync(@" 1377await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RemoveEmptyFinalizersTests.Fixer.cs (1)
19await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfacesTests.Fixer.cs (4)
19await VerifyCS.VerifyCodeFixAsync( 58await VerifyCS.VerifyCodeFixAsync( 87await VerifyCS.VerifyCodeFixAsync( 276await VerifyCS.VerifyCodeFixAsync(
Microsoft.CodeQuality.Analyzers\QualityGuidelines\UseLiteralsWhereAppropriateTests.Fixer.cs (1)
161await VerifyCS.VerifyCodeFixAsync(csharpCode, csharpCode);
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValueTests.Fixer.cs (2)
64await VerifyCS.VerifyCodeFixAsync(initial, expected); 132await VerifyCS.VerifyCodeFixAsync(initial, expected);
Microsoft.NetCore.Analyzers\InteropServices\ProvidePublicParameterlessSafeHandleConstructorTests.cs (4)
102await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 196await VerifyCS.VerifyCodeFixAsync(source, source); 217await VerifyCS.VerifyCodeFixAsync(source, source); 241await VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.NetCore.Analyzers\InteropServices\SpecifyMarshalingForPInvokeStringArgumentsTests.Fixer.cs (2)
21await VerifyCS.VerifyCodeFixAsync(@" 87await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Performance\CollapseMultiplePathOperationsTests.cs (10)
70await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 98await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 126await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 150await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 195await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 223await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 257await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 285await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 313await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode); 347await VerifyCS.VerifyCodeFixAsync(csCode, fixedCode);
Microsoft.NetCore.Analyzers\Performance\DoNotGuardDictionaryRemoveByContainsKeyTests.cs (39)
68await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 103await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 140await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 177await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 215await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 253await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 291await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 329await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 373await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 417await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 461await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 505await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 529await VerifyCS.VerifyCodeFixAsync(source, source); 553await VerifyCS.VerifyCodeFixAsync(source, source); 581await VerifyCS.VerifyCodeFixAsync(source, source); 609await VerifyCS.VerifyCodeFixAsync(source, source); 632await VerifyCS.VerifyCodeFixAsync(source, source); 655await VerifyCS.VerifyCodeFixAsync(source, source); 682await VerifyCS.VerifyCodeFixAsync(source, source); 709await VerifyCS.VerifyCodeFixAsync(source, source); 931await VerifyCS.VerifyCodeFixAsync(source, source); 951await VerifyCS.VerifyCodeFixAsync(source, source); 971await VerifyCS.VerifyCodeFixAsync(source, source); 991await VerifyCS.VerifyCodeFixAsync(source, source); 1013await VerifyCS.VerifyCodeFixAsync(source, source); 1035await VerifyCS.VerifyCodeFixAsync(source, source); 1055await VerifyCS.VerifyCodeFixAsync(source, source); 1075await VerifyCS.VerifyCodeFixAsync(source, source); 1095await VerifyCS.VerifyCodeFixAsync(source, source); 1115await VerifyCS.VerifyCodeFixAsync(source, source); 1154await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2114await VerifyCS.VerifyCodeFixAsync(source, source); 2153await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2194await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2231await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2278await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2325await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2349await VerifyCS.VerifyCodeFixAsync(source, source); 2373await VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.NetCore.Analyzers\Performance\DoNotGuardSetAddOrRemoveByContainsTests.cs (39)
68await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 103await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 140await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 177await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 215await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 253await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 291await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 329await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 373await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 417await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 461await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 505await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 529await VerifyCS.VerifyCodeFixAsync(source, source); 553await VerifyCS.VerifyCodeFixAsync(source, source); 581await VerifyCS.VerifyCodeFixAsync(source, source); 609await VerifyCS.VerifyCodeFixAsync(source, source); 632await VerifyCS.VerifyCodeFixAsync(source, source); 655await VerifyCS.VerifyCodeFixAsync(source, source); 682await VerifyCS.VerifyCodeFixAsync(source, source); 709await VerifyCS.VerifyCodeFixAsync(source, source); 931await VerifyCS.VerifyCodeFixAsync(source, source); 951await VerifyCS.VerifyCodeFixAsync(source, source); 971await VerifyCS.VerifyCodeFixAsync(source, source); 991await VerifyCS.VerifyCodeFixAsync(source, source); 1013await VerifyCS.VerifyCodeFixAsync(source, source); 1035await VerifyCS.VerifyCodeFixAsync(source, source); 1055await VerifyCS.VerifyCodeFixAsync(source, source); 1075await VerifyCS.VerifyCodeFixAsync(source, source); 1095await VerifyCS.VerifyCodeFixAsync(source, source); 1115await VerifyCS.VerifyCodeFixAsync(source, source); 1154await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2095await VerifyCS.VerifyCodeFixAsync(source, source); 2134await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2175await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2212await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2257await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2302await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 2328await VerifyCS.VerifyCodeFixAsync(source, source); 2354await VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Tests.cs (4)
239=> Test.Utilities.CSharpCodeFixVerifier<UseCountProperlyAnalyzer, CSharpDoNotUseCountWhenAnyCanBeUsedFixer>.VerifyCodeFixAsync( 469=> Test.Utilities.CSharpCodeFixVerifier<UseCountProperlyAnalyzer, CSharpDoNotUseCountWhenAnyCanBeUsedFixer>.VerifyCodeFixAsync( 893=> Test.Utilities.CSharpCodeFixVerifier<UseCountProperlyAnalyzer, CSharpDoNotUseCountWhenAnyCanBeUsedFixer>.VerifyCodeFixAsync( 1013=> Test.Utilities.CSharpCodeFixVerifier<UseCountProperlyAnalyzer, CSharpDoNotUseCountWhenAnyCanBeUsedFixer>.VerifyCodeFixAsync(
Microsoft.NetCore.Analyzers\Runtime\AvoidConstArraysTests.cs (16)
22await VerifyCS.VerifyCodeFixAsync(@" 79await VerifyCS.VerifyCodeFixAsync(@" 109await VerifyCS.VerifyCodeFixAsync(@" 166await VerifyCS.VerifyCodeFixAsync(@" 223await VerifyCS.VerifyCodeFixAsync(@" 265await VerifyCS.VerifyCodeFixAsync(@" 303await VerifyCS.VerifyCodeFixAsync(@" 341await VerifyCS.VerifyCodeFixAsync(@" 379await VerifyCS.VerifyCodeFixAsync(@" 445await VerifyCS.VerifyCodeFixAsync(@" 530await VerifyCS.VerifyCodeFixAsync(@" 864return VerifyCS.VerifyCodeFixAsync(source, fixedSource); 895return VerifyCS.VerifyCodeFixAsync(source, fixedSource); 927return VerifyCS.VerifyCodeFixAsync(source, fixedSource); 959return VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1087return VerifyCS.VerifyCodeFixAsync(code, fixedCode);
Microsoft.NetCore.Analyzers\Runtime\AvoidUnsealedAttributesTests.Fixer.cs (1)
21await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocationsTests.cs (1)
748await VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectlyTests.cs (8)
483await VerifyCS.VerifyCodeFixAsync(@" 583await VerifyCS.VerifyCodeFixAsync(@" 683await VerifyCS.VerifyCodeFixAsync(@" 735await VerifyCS.VerifyCodeFixAsync(@" 835await VerifyCS.VerifyCodeFixAsync(@" 935await VerifyCS.VerifyCodeFixAsync(@" 1035await VerifyCS.VerifyCodeFixAsync(@" 1104await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\ForwardCancellationTokenToInvocationsTests.cs (47)
478await VerifyCS.VerifyCodeFixAsync(source, source); 644return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 674return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 704return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 734return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 764return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 794return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 830return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 870return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 907return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 946return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 976return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1006return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1038return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1070return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1102return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1134return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1170return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1206return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1242return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1278return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1314return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1358return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1402return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1438return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1480return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1522return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1564return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1606return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1638return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1672return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1704return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1738return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1770return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1806return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1836return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1866return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1898return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1930return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1959return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 1999return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 2112return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 2161return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 2210return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 2448return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 2488return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode); 2529return VerifyCS.VerifyCodeFixAsync(originalCode, fixedCode);
Microsoft.NetCore.Analyzers\Runtime\MarkAllNonSerializableFieldsTests.Fixer.cs (2)
24await VerifyCS.VerifyCodeFixAsync(@" 122await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\PreferConstCharOverConstUnitStringTests.cs (5)
52await VerifyCS.VerifyCodeFixAsync(csInput, csFix); 102await VerifyCS.VerifyCodeFixAsync(multipleDeclarations_cs, multipleDeclarations_cs); 139await VerifyCS.VerifyCodeFixAsync(classFieldInAppend_cs, classFieldInAppend_cs); 333await VerifyCS.VerifyCodeFixAsync(appendLiteralInput_cs, appendLiteralFix_cs); 502await VerifyCS.VerifyCodeFixAsync(interpolatedString_cs, interpolatedString_cs);
Microsoft.NetCore.Analyzers\Runtime\PreferJsonElementParseTests.cs (8)
98await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 160await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 290await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 348await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 400await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 502await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 598await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 658await VerifyCS.VerifyCodeFixAsync(source, fixedSource);
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloadsTests.cs (5)
46await VerifyCS.VerifyCodeFixAsync(original, !diagnosticExpected ? original : @" 132await VerifyCS.VerifyCodeFixAsync(original, !diagnosticExpected ? original : @" 174await VerifyCS.VerifyCodeFixAsync(original, !diagnosticExpected ? original : @" 267await VerifyCS.VerifyCodeFixAsync(@" 295await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\SealInternalTypesTests.cs (8)
338return VerifyCS.VerifyCodeFixAsync(source, source); 346return VerifyCS.VerifyCodeFixAsync(source, source); 355return VerifyCS.VerifyCodeFixAsync(source, source); 363return VerifyCS.VerifyCodeFixAsync(source, source); 376return VerifyCS.VerifyCodeFixAsync(source, source); 402return VerifyCS.VerifyCodeFixAsync(source, source); 422return VerifyCS.VerifyCodeFixAsync(source, source); 445return VerifyCS.VerifyCodeFixAsync(source, source);
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLengthTests.Fixer.cs (18)
22await VerifyCS.VerifyCodeFixAsync(@" 147await VerifyCS.VerifyCodeFixAsync(@" 254await VerifyCS.VerifyCodeFixAsync(@" 362await VerifyCS.VerifyCodeFixAsync(@" 469await VerifyCS.VerifyCodeFixAsync(@" 576await VerifyCS.VerifyCodeFixAsync(@" 630await VerifyCS.VerifyCodeFixAsync(@" 675await VerifyCS.VerifyCodeFixAsync(@" 701await VerifyCS.VerifyCodeFixAsync(@" 729await VerifyCS.VerifyCodeFixAsync(@" 759await VerifyCS.VerifyCodeFixAsync(@" 793await VerifyCS.VerifyCodeFixAsync(@" 825await VerifyCS.VerifyCodeFixAsync(@" 855await VerifyCS.VerifyCodeFixAsync(@" 887await VerifyCS.VerifyCodeFixAsync(@" 1010await VerifyCS.VerifyCodeFixAsync(@" 1045await VerifyCS.VerifyCodeFixAsync(@" 1080await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectlyTests.Fixer.cs (15)
19await VerifyCS.VerifyCodeFixAsync(@" 55await VerifyCS.VerifyCodeFixAsync(@" 91await VerifyCS.VerifyCodeFixAsync(@" 127await VerifyCS.VerifyCodeFixAsync(@" 163await VerifyCS.VerifyCodeFixAsync(@" 200await VerifyCS.VerifyCodeFixAsync(@" 237await VerifyCS.VerifyCodeFixAsync(@" 291await VerifyCS.VerifyCodeFixAsync(@" 336await VerifyCS.VerifyCodeFixAsync(@" 362await VerifyCS.VerifyCodeFixAsync(@" 392await VerifyCS.VerifyCodeFixAsync(@" 422await VerifyCS.VerifyCodeFixAsync(@" 456await VerifyCS.VerifyCodeFixAsync(@" 488await VerifyCS.VerifyCodeFixAsync(@" 518await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Runtime\UseEnvironmentMembersTests.cs (3)
103await VerifyCS.VerifyCodeFixAsync( 175await VerifyCS.VerifyCodeFixAsync( 247await VerifyCS.VerifyCodeFixAsync(
Microsoft.NetCore.Analyzers\Runtime\UseOrdinalStringComparisonTests.Fixer.cs (2)
22await VerifyCS.VerifyCodeFixAsync( 80await VerifyCS.VerifyCodeFixAsync(
Microsoft.NetCore.Analyzers\Runtime\UseRegexMembersTests.cs (1)
20await VerifyCS.VerifyCodeFixAsync("""
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompareTests.cs (1)
161return VerifyCS.VerifyCodeFixAsync(testCode, fixedCode);
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArgumentsTests.cs (3)
111await VerifyCS.VerifyCodeFixAsync( 155await VerifyCS.VerifyCodeFixAsync( 287await VerifyCS.VerifyCodeFixAsync(Input, Input);
Microsoft.NetCore.Analyzers\Tasks\DoNotUseWhenAllOrWaitAllWithSingleArgumentTests.cs (1)
340await VerifyCS.VerifyCodeFixAsync(@"
Microsoft.NetCore.Analyzers\Usage\PreferGenericOverloadsTests.cs (43)
34await VerifyCS.VerifyCodeFixAsync(source, source); 53await VerifyCS.VerifyCodeFixAsync(source, source); 72await VerifyCS.VerifyCodeFixAsync(source, source); 93await VerifyCS.VerifyCodeFixAsync(source, source); 115await VerifyCS.VerifyCodeFixAsync(source, source); 135await VerifyCS.VerifyCodeFixAsync(source, source); 155await VerifyCS.VerifyCodeFixAsync(source, source); 174await VerifyCS.VerifyCodeFixAsync(source, source); 193await VerifyCS.VerifyCodeFixAsync(source, source); 207await VerifyCS.VerifyCodeFixAsync(source, source); 228await VerifyCS.VerifyCodeFixAsync(source, source); 264await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 285await VerifyCS.VerifyCodeFixAsync(source, source); 321await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 342await VerifyCS.VerifyCodeFixAsync(source, source); 378await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 402await VerifyCS.VerifyCodeFixAsync(source, source); 444await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 465await VerifyCS.VerifyCodeFixAsync(source, source); 501await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 589await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 627await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 659await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 697await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 729await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 767await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 799await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 837await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 869await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 907await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 945await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 981await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1013await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1045await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1083await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1127await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1143await VerifyCS.VerifyCodeFixAsync(source, source); 1169await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1201await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1233await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1364await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1398await VerifyCS.VerifyCodeFixAsync(source, fixedSource); 1432await VerifyCS.VerifyCodeFixAsync(source, fixedSource);
Roslyn.Diagnostics.Analyzers.UnitTests (16)
PartsExportedWithMEFv2MustBeMarkedAsSharedTests.cs (2)
134await VerifyCS.VerifyCodeFixAsync(""" 182await VerifyCS.VerifyCodeFixAsync("""
PreferNullLiteralTests.cs (14)
20=> VerifyCS.VerifyCodeFixAsync($$""" 55await VerifyCS.VerifyCodeFixAsync(source, source); 133=> VerifyCS.VerifyCodeFixAsync(""" 196=> VerifyCS.VerifyCodeFixAsync($$""" 214=> VerifyCS.VerifyCodeFixAsync($$""" 254=> VerifyCS.VerifyCodeFixAsync(""" 294=> VerifyCS.VerifyCodeFixAsync(""" 345await VerifyCS.VerifyCodeFixAsync(source, source); 361await VerifyCS.VerifyCodeFixAsync(source, source); 377await VerifyCS.VerifyCodeFixAsync(source, source); 382=> VerifyCS.VerifyCodeFixAsync(""" 416await VerifyCS.VerifyCodeFixAsync(source, source); 433await VerifyCS.VerifyCodeFixAsync(source, source); 455await VerifyCS.VerifyCodeFixAsync(source, source);