Esempio n. 1
0
 public void Init()
 {
     brol = new StaffelKorting("Brol");
     brol.NieuwItem(20, 20.0);
     brol.NieuwItem(100, 30.0);
     brol.NieuwItem(200, 45.0);
 }
Esempio n. 2
0
        public void ReverseToevoegen()
        {
            var target = new StaffelKorting("Reverse");

            target.NieuwItem(200, 45.0);
            target.NieuwItem(100, 30.0);
            target.NieuwItem(20, 20.0);
            Assert.AreEqual(20.0, target.KortingVoorAantal(20));
            Assert.AreEqual(30.0, target.KortingVoorAantal(100));
            Assert.AreEqual(45.0, target.KortingVoorAantal(200));
            Assert.AreEqual(0.0, target.KortingVoorAantal(5));
            Assert.AreEqual(20.0, target.KortingVoorAantal(50));
            Assert.AreEqual(30.0, target.KortingVoorAantal(150));
            Assert.AreEqual(45.0, target.KortingVoorAantal(500));
        }