Пример #1
0
        public void FindItemsInBoxTest(List <sItem> consumables,
                                       List <sItem> ammo,
                                       List <sItem> materials,
                                       List <sItem> decorations,
                                       HashSet <int> ids,
                                       HashSet <int> expectedIds)
        {
            var box = new ItemBox();

            box.Refresh(consumables.ToArray(), ammo.ToArray(), materials.ToArray(), decorations.ToArray());
            var actualItems = box.FindItemsInBox(ids);

            CollectionAssert.AreEquivalent(expectedIds, actualItems.Keys);
        }