Skip to main content

DiagnosticVerifier.VerifyDiagnosticAndNoFixAsync Method

Containing Type: DiagnosticVerifier<TAnalyzer, TFixProvider>

Assembly: Roslynator.Testing.Common.dll

Overloads​

MethodSummary
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(TestFile, IEnumerable<AdditionalFile>, 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​

Task

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

Returns​

Task

VerifyDiagnosticAndNoFixAsync(TestFile, IEnumerable<AdditionalFile>, 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(Roslynator.Testing.TestFile file, System.Collections.Generic.IEnumerable<Roslynator.Testing.AdditionalFile>? additionalFiles = null, string? equivalenceKey = null, Roslynator.Testing.TestOptions? options = null, System.Threading.CancellationToken cancellationToken = default)

Parameters​

file   TestFile

Source file where diagnostic's location is marked with [| and |] tokens.

additionalFiles   IEnumerable<AdditionalFile>

equivalenceKey   String

options   TestOptions

cancellationToken   CancellationToken

Returns​

Task