public void Test_InsufficientAmountForPurchase() { ApolloNorth.VendingMachine vm = new ApolloNorth.VendingMachine(1, 0); var result = vm.BuyDrink(); Assert.IsTrue(result == "Insufficient fund in Account"); }
public void Test_SuccessfulPurchase() { ApolloNorth.VendingMachine vm = new ApolloNorth.VendingMachine(1, 50); var result = vm.BuyDrink(); Assert.IsTrue(result.Contains("CAN Dispensed")); }
public void Test_ZeroQuantityInventory_ZeroAmount() { ApolloNorth.VendingMachine vm = new ApolloNorth.VendingMachine(0, 0); var result = vm.BuyDrink(); Assert.IsTrue(result == "Inventory Out of Stock"); Assert.AreEqual(result, "Inventory Out of Stock"); }