public void test_smartrobot_get_empty_box_count() { var srb = new SmartRobot(); var cabinet = new Cabinet(1); srb.Add(cabinet); Assert.AreEqual(1, cabinet.GetEmptyBoxCount()); }
public void test_smartrobot_can_store_bag() { var srb = new SmartRobot(); srb.Add(new Cabinet()); var ticket = srb.Store(new Bag()); Assert.IsNotNull(ticket); }
public void test_smartrobot_can_store_bag_by_order() { var srb = new SmartRobot(); var cabinet = new Cabinet(3); srb.Add(cabinet); srb.Add(new Cabinet(1)); srb.Store(new Bag()); Assert.AreEqual(2, cabinet.GetEmptyBoxCount()); }
public void should_return_validate_ticket_and_Save_to_MoreEmptyBoxCabinet_when_store_given_has_empty_box() { var smartRobot = new SmartRobot(); var cabinet1 = new Cabinet(1); var cabinet2 = new Cabinet(2); smartRobot.Add(cabinet1); smartRobot.Add(cabinet2); var ticket = smartRobot.Store(new Bag()); Assert.IsNotNull(ticket); Assert.IsTrue(cabinet1.HasEmptyBox()); }
public void test_smartrobot_should_has_empty_box() { var srb = new SmartRobot(); srb.Add(new Cabinet()); Assert.IsTrue(srb.HasEmptyBox()); }
public void should_return_true_given_has_empty_box() { var smartRobot = new SmartRobot(); smartRobot.Add(new Cabinet(50)); Assert.IsTrue(smartRobot.HasEmptyBox()); }
public void should_return_false_given_hasnot_empty_box() { var smartRobot = new SmartRobot(); smartRobot.Add(new Cabinet(0)); Assert.IsFalse(smartRobot.HasEmptyBox()); }