public void Add() { var storage = new FundStorage(Money.Dollar(123)); storage.Add(Money.Dollar(20)); Assert.Equal(Money.Dollar(143), storage.Funds); }
public void Add_Negative() { var storage = new FundStorage(Money.Dollar(123)); Assert.Throws <ArgumentException>(() => storage.Add(Money.Dollar(-20))); }