Home • Properties • Methods
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()
TAnalyzer
TFixProvider
Object → CodeVerifier → DiagnosticVerifier<TAnalyzer, TFixProvider>
Property | Summary |
---|---|
CommonOptions | Gets a common code verification options. (Inherited from CodeVerifier) |
Options | Gets a code verification options. (Inherited from CodeVerifier) |
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. |