public void FindItemsInTabTest(List <sItem> consumables, HashSet <int> ids, HashSet <int> expectedIds) { var box = new ItemBox(); sItem[] empty = { }; box.Refresh(consumables.ToArray(), empty, empty, empty); var actualItems = ItemBox.FindItemsInTab(box.Consumables, ids); Assert.NotNull(actualItems); CollectionAssert.AreEquivalent(expectedIds, actualItems.Keys); }