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 should_return_validate_ticket_and_Save_to_MoreEmptyBoxRateCabinet_when_store_given_has_empty_box() { var superRobot = new SuperRobot(); var cabinet1 = new Cabinet(2); var cabinet2 = new Cabinet(1); superRobot.Add(cabinet1); superRobot.Add(cabinet2); var ticket1 = Ticket.CreateTicket("SuperRobot"); ticket1 = cabinet1.Store(new Bag(), ticket1); var ticket = superRobot.Store(new Bag()); Assert.IsNotNull(ticket); Assert.IsFalse(cabinet2.HasEmptyBox()); }
public void should_has_empty_box_given_cabinet() { Cabinet cabinet = new Cabinet(boxNumber); Assert.IsTrue(cabinet.HasEmptyBox()); }
public void test_should_has_empty_box() { var cabinet = new Cabinet(); var hasEmptyBox = cabinet.HasEmptyBox(); Assert.IsTrue(hasEmptyBox); }
public void test_should_robot_save_bag_sequentially_when_nonrobot_save_bag_first() { var rb = new Robot(); var cabinet1 = new Cabinet(2); rb.Add(cabinet1); var cabinet2 = new Cabinet(2); rb.Add(cabinet2); cabinet1.Store(new Bag()); cabinet2.Store(new Bag()); rb.Store(new Bag()); Assert.IsFalse(cabinet1.HasEmptyBox()); }
public void should_store_bags_sequentially_given_bags() { var bag1 = new Bag(); var bag2 = new Bag(); var cabinet1 = new Cabinet(1); var cabinet2 = new Cabinet(1); var robot = new Robot(); robot.Add(cabinet1); robot.Add(cabinet2); robot.Store(bag1); Assert.IsFalse(cabinet1.HasEmptyBox()); Assert.IsTrue(cabinet2.HasEmptyBox()); robot.Store(bag2); Assert.IsFalse(cabinet1.HasEmptyBox()); Assert.IsFalse(cabinet2.HasEmptyBox()); }