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

            DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(source);
        }