Skip to main content

XunitDiagnosticVerifier<TAnalyzer, TFixProvider> Class

Namespace: Roslynator.Testing.CSharp.Xunit

Assembly: Roslynator.Testing.CSharp.Xunit.dll

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

public abstract class XunitDiagnosticVerifier<TAnalyzer, TFixProvider> : Roslynator.Testing.CSharp.CSharpDiagnosticVerifier<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> XunitDiagnosticVerifier<TAnalyzer, TFixProvider>

Constructors

ConstructorSummary
XunitDiagnosticVerifier()Initializes a new instance of XunitDiagnosticVerifier<TAnalyzer, TFixProvider>.

Properties

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

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>)