public void CartCurtNukaTestCase()
        {
            NukaCola cartcurtNukaCola = new Cartcurt();

            Assert.AreEqual(50, cartcurtNukaCola.getPrice());
            Assert.AreEqual("Cart Curt Nuka Cola", cartcurtNukaCola.getName());
        }
Ejemplo n.º 2
0
        public void MakeDiscountToCartCurtNukaCola()
        {
            VendingMachine a = new VendingMachine();
            NukaCola       cartCurtNukaCola = new Cartcurt();
            int            expected         = 37;
            int            actual           = (int)a.CalculateDiscount(cartCurtNukaCola.getPrice()); //%25 discount to 50

            Assert.AreEqual(expected, actual);
        }