Skip to main content

RefactoringVerifier.VerifyRefactoringAsync Method

Containing Type: RefactoringVerifier<TRefactoringProvider>

Assembly: Roslynator.Testing.Common.dll

Overloads​

MethodSummary
VerifyRefactoringAsync(RefactoringTestData, ExpectedTestState, TestOptions, CancellationToken)Verifies that refactoring will be applied correctly using specified TRefactoringProvider.
VerifyRefactoringAsync(String, String, IEnumerable<String>, String, TestOptions, CancellationToken)Verifies that refactoring will be applied correctly using specified TRefactoringProvider.
VerifyRefactoringAsync(TestFile, IEnumerable<AdditionalFile>, String, TestOptions, CancellationToken)Verifies that refactoring will be applied correctly using specified TRefactoringProvider.

VerifyRefactoringAsync(RefactoringTestData, ExpectedTestState, TestOptions, CancellationToken)​

Verifies that refactoring will be applied correctly using specified TRefactoringProvider.

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

Parameters​

data   RefactoringTestData

expected   ExpectedTestState

options   TestOptions

cancellationToken   CancellationToken

Returns​

Task

VerifyRefactoringAsync(String, String, IEnumerable<String>, String, TestOptions, CancellationToken)​

Verifies that refactoring will be applied correctly using specified TRefactoringProvider.

public System.Threading.Tasks.Task VerifyRefactoringAsync(string source, string expectedSource, 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 text selection is marked with [| and |] tokens.

expectedSource   String

additionalFiles   IEnumerable<String>

equivalenceKey   String

options   TestOptions

cancellationToken   CancellationToken

Returns​

Task

VerifyRefactoringAsync(TestFile, IEnumerable<AdditionalFile>, String, TestOptions, CancellationToken)​

Verifies that refactoring will be applied correctly using specified TRefactoringProvider.

public System.Threading.Tasks.Task VerifyRefactoringAsync(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 text selection is marked with [| and |] tokens.

additionalFiles   IEnumerable<AdditionalFile>

equivalenceKey   String

options   TestOptions

cancellationToken   CancellationToken

Returns​

Task