public void Setup() { _dictionary = new GenericDictionaryImpl <string, string> { { "item1", "oh" }, { "item2", "hai" } }; _adapter = GenericDictionaryAdapter.Create(_dictionary); }
public void should_insert_node_backed_by_generic_dictionary_implementation() { var dictionary = new GenericDictionaryImpl <string, INode>(); var parent = CreateNodeOfType(dictionary); var child = Node.CreateValue("hai"); parent.ShouldNotExecuteCallback <INode>((s, c) => s.Add(child, c)); dictionary.Count.ShouldEqual(1); dictionary["hai"].ShouldBeSameAs(child); }
public void Setup() { _dictionary = new GenericDictionaryImpl<string, string> { { "item1", "oh" }, { "item2", "hai" } }; _adapter = GenericDictionaryAdapter.Create(_dictionary); }