Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Commented Feature: Create assertions for IDictionary [11048]

$
0
0
Assertions to support:
- ContainKey
- NotContainKey
- BeEmpty
- NotBeEmpty
- HaveCount
  Etc....

Example:
var dictionary = new Dictionary<int, string>() { { 1, "One" } };
dictionary.Should().ContainKey(1);
dictionary.Should().NotContainKey(2);
dictionary.Should().NotBeEmpty();
dictionary.Should().HaveCount(1);
Comments: Associated with changeset 68296.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>