public void ChangeSaldoTest() { Client client = new Client("Jan", "Nowak", "01234567891"); Investment investment = new Investment("123", new InterestTenPercent(), 1000, client); investment.ChangeSaldo(100); Assert.AreEqual(1100, investment.GetSaldo()); investment.ChangeSaldo(-400); Assert.AreEqual(700, investment.GetSaldo()); }
public void ChangeSaldoTest2() { Client client = new Client("Jan", "Nowak", "01234567891"); Investment investment = new Investment("123", new InterestTenPercent(), 1000, client); investment.ChangeSaldo(-1100); }