Example #1
0
 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]);
     }
 }
Example #2
0
 public void DidntEnterTest()
 {
     slave = new ViewCartSlave(null);
     slave.ViewCart();
     Assert.IsNull(slave.Answer.ReportList);
 }