Skip to main content

DiagnosticVerifier.VerifyDiagnosticAsync Method

Containing Type: DiagnosticVerifier<TAnalyzer, TFixProvider>

Assembly: Roslynator.Testing.Common.dll

Overloads

MethodSummary
VerifyDiagnosticAsync(DiagnosticTestData, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic(s).
VerifyDiagnosticAsync(String, IEnumerable<String>, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic(s).

VerifyDiagnosticAsync(DiagnosticTestData, TestOptions, CancellationToken)

Verifies that specified source will produce specified diagnostic(s).

public System.Threading.Tasks.Task VerifyDiagnosticAsync(Roslynator.Testing.DiagnosticTestData data, Roslynator.Testing.TestOptions? options = null, System.Threading.CancellationToken cancellationToken = default)

Parameters

data DiagnosticTestData

options TestOptions

cancellationToken CancellationToken

Returns

Task

VerifyDiagnosticAsync(String, IEnumerable<String>, TestOptions, CancellationToken)

Verifies that specified source will produce specified diagnostic(s).

public System.Threading.Tasks.Task VerifyDiagnosticAsync(string source, System.Collections.Generic.IEnumerable<string>? additionalFiles = 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>

options TestOptions

cancellationToken CancellationToken

Returns

Task