Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 3.19 KB

File metadata and controls

52 lines (34 loc) · 3.19 KB

DiagnosticVerifier<TAnalyzer, TFixProvider> Class

HomePropertiesMethods

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

ObjectCodeVerifier → DiagnosticVerifier<TAnalyzer, TFixProvider>

Derived

Properties

Property Summary
CommonOptions Gets a common code verification options. (Inherited from CodeVerifier)
Options Gets a code verification options. (Inherited from CodeVerifier)

Methods

Method Summary
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.
VerifyDiagnosticAndNoFixAsync(DiagnosticTestData, 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).
VerifyNoDiagnosticAsync(DiagnosticTestData, TestOptions, CancellationToken) Verifies that specified source will not produce specified diagnostic.