예제 #1
0
        public void AddCurrencyTest()
        {
            var added = _group.Add(_gold, 100d);

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

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