var websters = new Dictionary<string, string> { { "Cromulent", "I never heard the word before moving to Springfield." } };websters.ShouldContainKeyAndValue("Cromulent", "Fine, acceptable.");
Exception
webstersshould contain key"Cromulent"with value"Fine, acceptable."but value was"I never heard the word before moving to Springfield."
var websters = new Dictionary<string, string> { { "Chazzwazzers", "What Australians would have called a bull frog." } };websters.ShouldNotContainValueForKey("Chazzwazzers", "What Australians would have called a bull frog.");
Exception
webstersshould not contain key"Chazzwazzers"with value"What Australians would have called a bull frog."but does