Пример #1
0
        public void ResourceBank_Remove_RemovesProperQuantity()
        {
            ResourceBank cargo = new ResourceBank(20);

            cargo.Add(TestResource, 10);
            cargo.Remove(TestResource, 2);
            Assert.IsTrue(cargo[TestResource].Quantity == 8, "Does not remove proper quantity");
        }
Пример #2
0
        public void ResourceBank_RemoveWorks()
        {
            ResourceBank bank = new ResourceBank(20);

            bank.Add(TestResource, 5);

            bank.Remove(TestResource, 2);
            Assert.IsTrue(bank[TestResource].Quantity != 5, "Does not reduce quantity");
        }