public void Should_instantiate_a_dictionary_given_a_keyPairValue() { List <KeyValuePair <string, object> > metadatas = new List <KeyValuePair <string, object> > { new KeyValuePair <string, object>("key1", "value1"), new KeyValuePair <string, object>("key2", "value2") }; var metadataCollection = new MetadataCollection(metadatas); metadataCollection.Should().HaveCount(2); }