private static Task VerifyAsync(string code, DiagnosticResult[] diagnostics, string fix) => Verify.CodeFix <F02001ImplicitRecordClassDeclaration, DeclareRecordClassExplicitly>().CodeActionAsync(code, diagnostics, fix, ReferenceAssemblies.Net.Net50);
public void DeclareRecordClassExplicitly_CheckType() => Verify.CodeFix <DeclareRecordClassExplicitly>().Type();
private static Task VerifyAsync(string code, DiagnosticResult[] diagnostics, string fix, ReferenceAssemblies referenceAssemblies) => Verify.CodeFix <F0100xPreferPatternMatchingNullCheckOverComparisonWithNull, UsePatternMatchingNullCheckInsteadOfComparisonWithNull>().CodeActionAsync(code, diagnostics, fix, referenceAssemblies);
private static Task VerifyNoOpAsync(string code) => Verify.CodeFix <F0100xPreferPatternMatchingNullCheckOverComparisonWithNull, UsePatternMatchingNullCheckInsteadOfComparisonWithNull>().NoOpAsync(code);
public void UsePatternMatchingNullCheckInsteadOfComparisonWithNull_CheckType() => Verify.CodeFix <UsePatternMatchingNullCheckInsteadOfComparisonWithNull>().Type();