Exemplo n.º 1
0
        public void ChangeFromDoorIsLockedToDoorInRange()
        {
            lmSystem             = new LMSystem();
            lmSystem.DoorInRange = true;
            lmSystem.DoorIsLock  = true;
            lmSystem.CheckCurrentState();
            Assert.IsTrue(lmSystem.ReturnCurrentState() == typeof(DoorIsLocked));

            lmSystem.DoorIsLock = false;
            lmSystem.CheckCurrentState();
            Assert.IsTrue(lmSystem.ReturnCurrentState() == typeof(DoorInRange));
        }
Exemplo n.º 2
0
        public void Constructor_LMSystem()
        {
            lmSystem = new LMSystem();
            lmSystem.CheckCurrentState();

            Assert.IsTrue(lmSystem.ReturnCurrentState() == typeof(DoorOutOfRange));
        }