Пример #1
0
        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());
        }
Пример #2
0
        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());
        }
Пример #3
0
        public void test_superrobot_can_store_bag_by_emptyboxrate()
        {
            var superRobot = new SuperRobot();
            var cabinet1 = new Cabinet(10);
            var cabinet2 = new Cabinet(8);

            cabinet1.Store(new Bag());
            cabinet1.Store(new Bag());
            cabinet1.Store(new Bag());

            cabinet2.Store(new Bag());
            cabinet2.Store(new Bag());

            superRobot.Add(cabinet1);
            superRobot.Add(cabinet2);

            superRobot.Store(new Bag());

            Assert.AreEqual(5, cabinet2.GetEmptyBoxCount());
        }