public void RemoveBoughtProductFromVendorListTest() { _vendor.config.removeBoughtProductFromVendor = false; _customerCurrencies.Add(_gold, 100); _customerCurrencies.Add(_silver, 100); _vendorCollection.Add(_product1, 3); var bought1 = _vendor.BuyFromVendor(_customer, _product1.item, 1); var bought2 = _vendor.BuyFromVendor(_customer, _product1.item, 1); Assert.IsNull(bought1.error); Assert.IsNull(bought2.error); Assert.AreEqual(3, _vendorCollection.GetAmount(_product1)); Assert.AreEqual(2, _customerCollection.GetAmount(_product1.item)); }