public void AddAndRemoveItem() { Assert.DoesNotThrow(() => m_Inventory.AddItem(m_ExistantItem), "Couldn't add item"); Assert.AreEqual(1, m_Inventory.Count, "Item count incorrect"); Assert.IsTrue( m_Inventory.HasItem(m_ExistantItem.Name, m_ExistantItem.Category), "Couldn't find item"); Assert.DoesNotThrow(() => m_Inventory.RemoveItem(m_ExistantItem), "Couldn't remove item"); Assert.AreEqual(0, m_Inventory.Count, "Item count incorrect after remove"); Assert.IsFalse( m_Inventory.HasItem(m_ExistantItem.Name, m_ExistantItem.Category), "Inventory still has the item"); }