Skip to main content

DiagnosticVerifier<TAnalyzer, TFixProvider> Class

Namespace: Roslynator.Testing

Assembly: Roslynator.Testing.Common.dll

Represents verifier for a diagnostic that is produced by DiagnosticAnalyzer.

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

Type Parameters

TAnalyzer

TFixProvider

Inheritance

Object CodeVerifier DiagnosticVerifier<TAnalyzer, TFixProvider>

Derived

Properties

PropertySummary
CommonOptionsGets a common code verification options. (Inherited from CodeVerifier)
Descriptor
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)
VerifyDiagnosticAndFixAsync(DiagnosticTestData, ExpectedTestState, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic and that the diagnostic will be fixed.
VerifyDiagnosticAndFixAsync(String, String, IEnumerable<(String source, String expectedSource)>, String, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic and that the diagnostic will be fixed.
VerifyDiagnosticAndNoFixAsync(DiagnosticTestData, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed.
VerifyDiagnosticAndNoFixAsync(String, IEnumerable<String>, String, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed.
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).
VerifyNoDiagnosticAsync(DiagnosticTestData, TestOptions, CancellationToken)Verifies that specified source will not produce specified diagnostic.
VerifyNoDiagnosticAsync(String, IEnumerable<String>, TestOptions, CancellationToken)Verifies that specified source will not produce specified diagnostic.