예제 #1
0
        public void RemoveCurrencyTest()
        {
            _group.Add(_gold, 100d);

            var removed = _group.Remove(_gold, 50d);

            Assert.IsNull(removed.error);
            Assert.IsTrue(removed.result);

            Assert.AreEqual(0d, _col1.GetAmount(_gold));
            Assert.AreEqual(50d, _col2.GetAmount(_gold));
        }
예제 #2
0
 public Result <bool> RemoveCurrency(ICurrency currency, double amount)
 {
     return(currencies.Remove(currency, amount));
 }