public void Add(TKey key, TValue value) { _Implementation = _Implementation.AddMutable(key, value); }
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"); }
public void Add_Return_SameObject_IfElementNumberBelowLimit() { var res = _DictionaryNoElement.AddMutable("Key0", "Value0"); res.Should().BeSameAs(res); }