Skip to main content

CompilerDiagnosticFixVerifier<TFixProvider> Class

Namespace: Roslynator.Testing

Assembly: Roslynator.Testing.Common.dll

Represents a verifier for compiler diagnostic.

public abstract class CompilerDiagnosticFixVerifier<TFixProvider> : Roslynator.Testing.CodeVerifier where TFixProvider : Microsoft.CodeAnalysis.CodeFixes.CodeFixProvider, new()

Type Parameters​

TFixProvider

Inheritance​

Object → CodeVerifier → CompilerDiagnosticFixVerifier<TFixProvider>

Derived​

Properties​

PropertySummary
CommonOptionsGets a common code verification options. (Inherited from CodeVerifier)
DiagnosticId
OptionsGets a code verification options. (Inherited from CodeVerifier)

Methods​

MethodSummary
Equals(Object)(Inherited from Object)
GetHashCode()(Inherited from Object)
GetType()(Inherited from Object)
MemberwiseClone()(Inherited from Object)
ToString()(Inherited from Object)
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(TestFile, IEnumerable<AdditionalFile>, String, TestOptions, CancellationToken)Verifies that specified source will produce compiler diagnostic.
VerifyNoFixAsync(CompilerDiagnosticFixTestData, TestOptions, CancellationToken)Verifies that specified source will not produce compiler diagnostic.
VerifyNoFixAsync(String, IEnumerable<String>, String, TestOptions, CancellationToken)Verifies that specified source will not produce compiler diagnostic.
VerifyNoFixAsync(TestFile, IEnumerable<AdditionalFile>, String, TestOptions, CancellationToken)Verifies that specified source will not produce compiler diagnostic.