100 references to CSharpCodeFixVerifier
Microsoft.AspNetCore.App.Analyzers.Test (100)
Authorization\AddAuthorizationBuilderTests.cs (3)
5using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 733await VerifyCS.VerifyCodeFixAsync(fullSource, diagnostics, fullFixedSource); 740await VerifyCS.VerifyCodeFixAsync(fullSource, Array.Empty<DiagnosticResult>(), fullSource);
Dependencies\AddPackageTests.cs (3)
8using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 37await VerifyCS.VerifyCodeFixAsync(source, source); 57await VerifyCS.VerifyCodeFixAsync(source, source);
Http\HeaderDictionaryAddTest.cs (6)
6using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 90await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, codeActionEquivalenceKey: AppendCodeActionEquivalenceKey); 160await VerifyCS.VerifyCodeFixAsync( 266await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, codeActionEquivalenceKey: IndexerCodeActionEquivalenceKey); 280await VerifyCS.VerifyCodeFixAsync(source, source); 294await VerifyCS.VerifyCodeFixAsync(source, source);
Http\HeaderDictionaryIndexerFixerTests.cs (6)
6using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 18await VerifyCS.VerifyCodeFixAsync(@" 54await VerifyCS.VerifyCodeFixAsync(@" 90await VerifyCS.VerifyCodeFixAsync(@" 113await VerifyCS.VerifyCodeFixAsync(@" 140await VerifyCS.VerifyCodeFixAsync(@"
Kestrel\ListenOnIPv6AnyAnalyzerAndFixerTests.cs (6)
8using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 20await VerifyCS.VerifyAnalyzerAsync(source, codeSampleDiagnosticResult); 27await VerifyCS.VerifyAnalyzerAsync(source, codeSampleDiagnosticResult); 34await VerifyCS.VerifyAnalyzerAsync(source, codeSampleDiagnosticResult); 42await VerifyCS.VerifyCodeFixAsync(source, codeSampleDiagnosticResult, fixedSource); 50await VerifyCS.VerifyCodeFixAsync(source, codeSampleDiagnosticResult, fixedSource);
RouteEmbeddedLanguage\RouteParameterUnusedParameterFixerTest.cs (18)
5using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 64await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 120await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 174await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 232await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 2); 290await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 2); 348await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 389await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 434await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 475await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 516await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 557await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 598await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 639await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 680await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 723await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1); 769await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 4); 836await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, expectedIterations: 1);
RouteHandlers\DetectMismatchedParameterOptionalityTest.cs (15)
5using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 32await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 57await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 80await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 108await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 163await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource); 204await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostics, fixedSource, usageSource: usageSource); 219await VerifyCS.VerifyCodeFixAsync(source, source); 234await VerifyCS.VerifyCodeFixAsync(source, source); 249await VerifyCS.VerifyCodeFixAsync(source, source); 264await VerifyCS.VerifyCodeFixAsync(source, source); 291await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 315await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 340await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 361await VerifyCS.VerifyCodeFixAsync(source, fixedSource);
WebApplicationBuilder\DisallowConfigureAppConfigureHostBuilderTest.cs (10)
5using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 25await VerifyCS.VerifyCodeFixAsync(source, source); 50await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 73await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 98await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 133await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 163await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 188await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 208await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 232await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource);
WebApplicationBuilder\DisallowConfigureHostLoggingTest.cs (12)
7using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 30await VerifyCS.VerifyCodeFixAsync(source, source); 54await VerifyCS.VerifyCodeFixAsync(source, source); 81await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 110await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 137await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 167await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 208await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 251await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 307await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 329await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 355await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource);
WebApplicationBuilder\DisallowConfigureServicesTest.cs (10)
7using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 30await VerifyCS.VerifyCodeFixAsync(source, source); 57await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 84await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 112await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 140await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnosis, fixedSource); 166await VerifyCS.VerifyCodeFixAsync(source, source); 207await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 248await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource); 316await VerifyCS.VerifyCodeFixAsync(source, expectedDiagnostic, fixedSource);
WebApplicationBuilder\PublicPartialProgramClassTest.cs (11)
5using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.CSharpCodeFixVerifier< 28await VerifyCS.VerifyCodeFixAsync(source, source); 67await VerifyCS.VerifyCodeFixAsync(source, [diagnostic], fixedSource); 106await VerifyCS.VerifyCodeFixAsync(source, [diagnostic], fixedSource); 124await VerifyCS.VerifyCodeFixAsync(source, source); 146await VerifyCS.VerifyCodeFixAsync(source, source); 168await VerifyCS.VerifyCodeFixAsync(source, source); 191await VerifyCS.VerifyCodeFixAsync(source, source); 214await VerifyCS.VerifyCodeFixAsync(source, source); 236await VerifyCS.VerifyCodeFixAsync(source, source); 260await VerifyCS.VerifyCodeFixAsync(source, source);