public void TestsSufficientFunds() { //arrange Catering catering = new Catering(fa); CateringItem[] items = catering.GetInventory(); string code = items[0].ProductCode; //first item decimal price = items[0].Price; //act //how much for 5 of them? decimal extendedPrice = price * 5; //add that amount + 1 dollar int moneyToAdd = (int)Math.Ceiling(extendedPrice) + 1; catering.AddMoney(moneyToAdd.ToString()); Assert.IsTrue(catering.IsSufficientFunds(code, "5")); Assert.IsFalse(catering.IsSufficientFunds(code, "10")); }