public void CartCurtNukaTestCase() { NukaCola cartcurtNukaCola = new Cartcurt(); Assert.AreEqual(50, cartcurtNukaCola.getPrice()); Assert.AreEqual("Cart Curt Nuka Cola", cartcurtNukaCola.getName()); }
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); }
public void CartCurtNukaTestCase2() { NukaCola cartcurtNukaCola = new Cartcurt(); Assert.IsInstanceOfType(cartcurtNukaCola, typeof(NukaCola)); }