public void GetAllItemTypes_ReturnsAllTypesOfItem() { _inv.TotalSlots = 4; var itemA = Substitute.For <IItemInfo>(); itemA.ID = 1; itemA.SlotsRequired = 1; itemA.StackSize = 5; var itemB = Substitute.For <IItemInfo>(); itemB.ID = 2; itemB.SlotsRequired = 2; itemB.StackSize = 1; _inv.Store(itemA, 2); _inv.Store(itemA, 3); _inv.Store(itemB, 1); _inv.Store(itemB, 1); var types = _inv.GetAllItemTypes(); Assert.AreEqual(2, types.Count); Assert.IsTrue(types.Contains(itemA)); Assert.IsTrue(types.Contains(itemB)); }