public void SaldoTest() { Rekening target = new Rekening(); float actual; actual = target.Saldo; Assert.AreEqual(0, actual); }
public void NeemOpTest() { Rekening target = new Rekening(); float bedrag = 30F; bool result = target.NeemOp(bedrag); Assert.AreEqual(-30,target.Saldo,"Saldo onjuist"); Assert.AreEqual(result, true); result = target.NeemOp(71F); Assert.AreEqual(-30, target.Saldo, "Kredietlimiet vergeten"); Assert.AreEqual(result, false); }
public bool SchrijfOver(Rekening bestemming, float bedrag) { return false; }
public void StortTest() { Rekening target = new Rekening(); float bedrag = 200.2F; // TODO: Initialize to an appropriate value target.Stort(bedrag); Assert.AreEqual(200.2f, target.Saldo); }
public void RekeningConstructorTest() { Rekening target = new Rekening(); Assert.AreEqual(0,target.Saldo); Assert.AreEqual(100, target.Kredietlimiet); }