Skip to main content

CompilerDiagnosticFixVerifier.VerifyFixAsync Method

Containing Type: CompilerDiagnosticFixVerifier<TFixProvider>

Assembly: Roslynator.Testing.Common.dll

Overloads

MethodSummary
VerifyFixAsync(CompilerDiagnosticFixTestData, ExpectedTestState, TestOptions, CancellationToken)Verifies that specified source will produce compiler diagnostic.
VerifyFixAsync(String, String, IEnumerable<(String source, String expectedSource)>, String, TestOptions, CancellationToken)Verifies that specified source will produce compiler diagnostic.

VerifyFixAsync(CompilerDiagnosticFixTestData, ExpectedTestState, TestOptions, CancellationToken)

Verifies that specified source will produce compiler diagnostic.

public System.Threading.Tasks.Task VerifyFixAsync(Roslynator.Testing.CompilerDiagnosticFixTestData data, Roslynator.Testing.ExpectedTestState expected, Roslynator.Testing.TestOptions? options = null, System.Threading.CancellationToken cancellationToken = default)

Parameters

data CompilerDiagnosticFixTestData

expected ExpectedTestState

options TestOptions

cancellationToken CancellationToken

Returns

Task

VerifyFixAsync(String, String, IEnumerable<(String source, String expectedSource)>, String, TestOptions, CancellationToken)

Verifies that specified source will produce compiler diagnostic.

public System.Threading.Tasks.Task VerifyFixAsync(string source, string expectedSource, System.Collections.Generic.IEnumerable<(string source, string expectedSource)>? 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.

expectedSource String

additionalFiles IEnumerable<(String source, String expectedSource)>

equivalenceKey String

options TestOptions

cancellationToken CancellationToken

Returns

Task