예제 #1
0
 public void DidntEnterTest()
 {
     AddItemsToCart();
     slave = new RemoveFromCartSlave(null);
     slave.RemoveFromCart("Health Potion", "X", 5.0);
     CartItem[] actual = user.Cart.GetCartStorage();
     compareCarts(new [] { item1, item2 }, actual);
 }
예제 #2
0
 public void NoItemToEditFoundTest()
 {
     AddItemsToCart();
     slave = new RemoveFromCartSlave(user);
     slave.RemoveFromCart("The Cake Is A LIE", "X", 5.0);
     CartItem[] actual = user.Cart.GetCartStorage();
     compareCarts(new[] { item1, item2 }, actual);
 }
예제 #3
0
 public void RemoveFromCartSuccessTest()
 {
     AddItemsToCart();
     slave = new RemoveFromCartSlave(user);
     slave.RemoveFromCart("Health Potion", "X", 5.0);
     CartItem[] actual = user.Cart.GetCartStorage();
     compareCarts(new [] { item2 }, actual);
     slave.RemoveFromCart("Mana Potion", "Y", 0.5);
     actual = user.Cart.GetCartStorage();
     compareCarts(new CartItem[0], actual);
 }