private void VerifyCSharpNoDiagnosticsCodeBlock(string assertion) { var source = GenerateCode.EnumerableCodeBlockAssertion(assertion); DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(source); }
public void CollectionShouldHaveElementAt_ShouldIgnoreDictionaryTypes() { string source = GenerateCode.DictionaryAssertion("actual[\"key\"].Should().Be(expectedValue);"); DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(source); }