Beispiel #1
0
 public void SaldoTest()
 {
     Rekening target = new Rekening();
     float actual;
     actual = target.Saldo;
     Assert.AreEqual(0, actual);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public bool SchrijfOver(Rekening bestemming, float bedrag)
 {
     return false;
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 public void RekeningConstructorTest()
 {
     Rekening target = new Rekening();
     Assert.AreEqual(0,target.Saldo);
     Assert.AreEqual(100, target.Kredietlimiet);
 }