public void ViewCartTest() { AddItemsToCart(); slave = new ViewCartSlave(user); slave.ViewCart(); string[] actualCart = slave.Answer.ReportList; Assert.AreEqual(expectedCartStrings.Length, actualCart.Length); for (int i = 0; i < expectedCartStrings.Length; i++) { Assert.AreEqual(expectedCartStrings[i], actualCart[i]); } }
public void DidntEnterTest() { slave = new ViewCartSlave(null); slave.ViewCart(); Assert.IsNull(slave.Answer.ReportList); }