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); }
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); }
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); }