DiagnosticVerifier.VerifyDiagnosticAndNoFixAsync Method
Containing Type: DiagnosticVerifier<TAnalyzer, TFixProvider>
Assembly: Roslynator.Testing.Common.dll
Overloads
Method | Summary |
---|---|
VerifyDiagnosticAndNoFixAsync(DiagnosticTestData, TestOptions, CancellationToken) | Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed. |
VerifyDiagnosticAndNoFixAsync(String, IEnumerable<String>, String, TestOptions, CancellationToken) | Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed. |
VerifyDiagnosticAndNoFixAsync(DiagnosticTestData, TestOptions, CancellationToken)
Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed.
public System.Threading.Tasks.Task VerifyDiagnosticAndNoFixAsync(Roslynator.Testing.DiagnosticTestData data, Roslynator.Testing.TestOptions? options = null, System.Threading.CancellationToken cancellationToken = default)
Parameters
data DiagnosticTestData
options TestOptions
cancellationToken CancellationToken
Returns
VerifyDiagnosticAndNoFixAsync(String, IEnumerable<String>, String, TestOptions, CancellationToken)
Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed.
public System.Threading.Tasks.Task VerifyDiagnosticAndNoFixAsync(string source, System.Collections.Generic.IEnumerable<string>? additionalFiles = null, string? equivalenceKey = null, Roslynator.Testing.TestOptions? options = null, System.Threading.CancellationToken cancellationToken = default)
Parameters
source String
Source code where diagnostic's location is marked with [|
and |]
tokens.
additionalFiles IEnumerable<String>
equivalenceKey String
options TestOptions
cancellationToken CancellationToken