public void Should_hold_cabinet()
 {
     var mgr = new Manager();
     var cabinet = new Cabinet(1);
     mgr.Add(cabinet);
     Assert.IsTrue(mgr.HasEmptyBox());
 }
 public void Should_store_bag_when_has_empty_cabinet()
 {
     var mgr = new Manager();
     var cabinet = new Cabinet(1);
     var bag = new Bag();
     mgr.Add(cabinet);
     mgr.Store(bag);
     Assert.IsFalse(mgr.HasEmptyBox());
 }
예제 #3
0
        public void TestManagerShouldHaveEmptyBoxGivenManagerHasOneCabinet()
        {
            var manager = new Manager();
            manager.Add(new Cabinet());

            Assert.IsTrue(manager.HasEmptyBox());
        }
예제 #4
0
        public void TestManagerShouldHaveEmptyBoxGivenManagerHasOneRobotAndOneCabinet()
        {
            var manager = new Manager();
            var robot = new Robot();
            var cabinet = new Cabinet();
            robot.Add(cabinet);
            manager.Add(robot);

            Assert.IsTrue(manager.HasEmptyBox());
        }