public ContainAssertions(AnalyzerAssertions analyzerAssertions, DiagnosticDescriptor rule)
 {
     _analyzerAssertions = analyzerAssertions;
     _diagnosticResult   = CSharpAnalyzerVerifier <SourceAnalyzer> .Diagnostic(rule);
 }
 public static DiagnosticResult Diagnostic(string diagnosticId)
 {
     return(CSharpAnalyzerVerifier <TAnalyzer, XUnitVerifier> .Diagnostic(diagnosticId));
 }