Skip to main content

CSharpDiagnosticVerifier<TAnalyzer, TFixProvider> Class

Namespace: Roslynator.Testing.CSharp

Assembly: Roslynator.Testing.CSharp.dll

Represents a verifier for a C# diagnostic that is produced by DiagnosticAnalyzer.

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

Type Parameters

TAnalyzer

TFixProvider

Inheritance

Object CodeVerifier DiagnosticVerifier<TAnalyzer, TFixProvider> CSharpDiagnosticVerifier<TAnalyzer, TFixProvider>

Derived

Properties

PropertySummary
CommonOptionsGets common test options. (Overrides CodeVerifier.CommonOptions)
Descriptor(Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
OptionsGets a test options.

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. (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
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. (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
VerifyDiagnosticAndNoFixAsync(DiagnosticTestData, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed. (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
VerifyDiagnosticAndNoFixAsync(String, IEnumerable<String>, String, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic and that the diagnostic will not be fixed. (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
VerifyDiagnosticAsync(DiagnosticTestData, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic(s). (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
VerifyDiagnosticAsync(String, IEnumerable<String>, TestOptions, CancellationToken)Verifies that specified source will produce specified diagnostic(s). (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
VerifyNoDiagnosticAsync(DiagnosticTestData, TestOptions, CancellationToken)Verifies that specified source will not produce specified diagnostic. (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)
VerifyNoDiagnosticAsync(String, IEnumerable<String>, TestOptions, CancellationToken)Verifies that specified source will not produce specified diagnostic. (Inherited from DiagnosticVerifier<TAnalyzer, TFixProvider>)