예제 #1
0
 public void Setup()
 {
     _list = new GenericListImpl <string> {
         "oh", "hai"
     };
     _adapter = GenericListAdapter.Create(_list);
 }
예제 #2
0
        public void should_insert_node_backed_by_generic_list_implementation()
        {
            var list   = new GenericListImpl <INode>();
            var parent = CreateNodeOfType(list);
            var child  = Node.CreateValue();

            parent.ShouldNotExecuteCallback <INode>((s, c) => s.Add(child, c));

            list.Count.ShouldEqual(1);
            list[0].ShouldBeSameAs(child);
        }
예제 #3
0
 public void Setup()
 {
     _list = new GenericListImpl<string> { "oh", "hai" };
     _adapter = GenericListAdapter.Create(_list);
 }