Lines Matching refs:table

20             var table = new WeakMultiTable<int, int>();  in ShouldHandleManyRightValuesForLeft()
21 table.Add(0, 5); in ShouldHandleManyRightValuesForLeft()
22 table.Add(0, 6); in ShouldHandleManyRightValuesForLeft()
23 Assert.AreEqual(2, table.GetAllForLeft(0).Count()); in ShouldHandleManyRightValuesForLeft()
29 var table = new WeakMultiTable<int, int>(); in ShouldHandleManyLeftValuesForRight()
30 table.Add(5, 0); in ShouldHandleManyLeftValuesForRight()
31 table.Add(6, 0); in ShouldHandleManyLeftValuesForRight()
32 Assert.AreEqual(2, table.GetAllForRight(0).Count()); in ShouldHandleManyLeftValuesForRight()
38 var table = new WeakMultiTable<int, int>(); in ShouldRemovePair()
39 table.Add(0, 0); in ShouldRemovePair()
40 table.Add(1, 1); in ShouldRemovePair()
42 Assert.AreEqual(1, table.GetAllForLeft(0).Count()); in ShouldRemovePair()
43 Assert.AreEqual(1, table.GetAllForLeft(1).Count()); in ShouldRemovePair()
45 table.RemovePair(0, 0); in ShouldRemovePair()
47 Assert.AreEqual(0, table.GetAllForLeft(0).Count()); in ShouldRemovePair()
48 Assert.AreEqual(1, table.GetAllForLeft(1).Count()); in ShouldRemovePair()
54 var table = new WeakMultiTable<int, int>(); in ShouldHandleRemoveOfUnexistingItem()
56 Assert.AreEqual(0, table.GetAllForLeft(0).Count()); in ShouldHandleRemoveOfUnexistingItem()
57 table.RemovePair(0, 0); in ShouldHandleRemoveOfUnexistingItem()
58 Assert.AreEqual(0, table.GetAllForLeft(0).Count()); in ShouldHandleRemoveOfUnexistingItem()
69 var table = new WeakMultiTable<NotSoWeakClass, int>(); in ShouldHoldWeakReference()
70 var wr = GenerateWeakReferenceAndInsertIntoTable(table); in ShouldHoldWeakReference()
88 …te WeakReference GenerateWeakReferenceAndInsertIntoTable(WeakMultiTable<NotSoWeakClass, int> table) in GenerateWeakReferenceAndInsertIntoTable() argument
91 table.Add(item, 0); in GenerateWeakReferenceAndInsertIntoTable()