private void VerifyCSharpFix <TCodeFixProvider, TDiagnosticAnalyzer>(string oldSourceAssertion, string newSourceAssertion) where TCodeFixProvider : Microsoft.CodeAnalysis.CodeFixes.CodeFixProvider, new() where TDiagnosticAnalyzer : Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, new() { var oldSource = GenerateCode.NumericAssertion(oldSourceAssertion); var newSource = GenerateCode.NumericAssertion(newSourceAssertion); DiagnosticVerifier.VerifyCSharpFix <TCodeFixProvider, TDiagnosticAnalyzer>(oldSource, newSource); }