public void AddMoneyToAccountPassTest() { //Arrange Catering testObj = new Catering(); testObj.CurrentAccountBalance = 4500; //Act string result = testObj.AddMoneyToAcct(500); //Assert Assert.AreEqual("Amount was successfully added.", result); }
public void AddMoneyToAccountFailTest() { //Arrange Catering testObj = new Catering(); testObj.CurrentAccountBalance = 5000; //Act string result = testObj.AddMoneyToAcct(1); //Assert Assert.AreEqual("Error: Maximum Account Balance is $5000.", result); }