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)); }
public Result <bool> AddCurrency(ICurrency currency, double amount) { return(currencies.Add(currency, amount)); }