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