public void DictionaryShouldContainPair_WhenPropertiesOfDifferentVariables_ShouldNotTrigger() { const string assertion = "actual.Should().ContainValue(pair.Value).And.ContainKey(otherPair.Key);"; var source = GenerateCode.DictionaryAssertion(assertion); DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(source); }
public void CollectionShouldHaveElementAt_ShouldIgnoreDictionaryTypes() { string source = GenerateCode.DictionaryAssertion("actual[\"key\"].Should().Be(expectedValue);"); DiagnosticVerifier.VerifyCSharpDiagnostic <CollectionShouldHaveElementAtAnalyzer>(source); }