RefactoringVerifier.VerifyRefactoringAsync Method
Containing Type: RefactoringVerifier<TRefactoringProvider>
Assembly: Roslynator.Testing.Common.dll
Overloads
Method | Summary |
---|---|
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(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
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