示例#1
0
 public void Add(TKey key, TValue value)
 {
     _Implementation = _Implementation.AddMutable(key, value);
 }
示例#2
0
        public void Add_Call_DictionarySwitcher_Add()
        {
            var res = _DictionaryOneElement.AddMutable("Key1", "Value1");

            _DictionarySwitcher.Received(1).GetIntermediateCollection(_DictionaryOneElement);
        }
 public void AddMutable_Call_DictionarySwitcher_Add()
 {
     _DictionaryTwoElements.AddMutable("Key2", "Value2");
     _DictionarySwitcher.Received(1).Add(_DictionaryTwoElements, "Key2", "Value2");
 }
示例#4
0
        public void Add_Return_SameObject_IfElementNumberBelowLimit()
        {
            var res = _DictionaryNoElement.AddMutable("Key0", "Value0");

            res.Should().BeSameAs(res);
        }