Пример #1
0
        public void MapField_Add_adds_items_to_map(MapField <string, string> map, IReadOnlyDictionary <string, string> items)
        {
            ProtobufCollectionExtensions.Add(map, items);

            Assert.That(map, Is.SupersetOf(items));
        }
Пример #2
0
 public void MapField_Add_does_not_throw_if_items_is_null(MapField <string, string> map)
 {
     Assert.That(() => ProtobufCollectionExtensions.Add(map, null), Throws.Nothing);
 }