示例#1
0
        public void TwentyOneDoorSalute()
        {
            string doorBeingSent  = "#####################";
            string expectedDoor   = "@##@####@######@#####";
            var    DoorInitialize = new DoorActions();
            string results        = DoorInitialize.MakeDoors(doorBeingSent);

            Assert.AreEqual(expectedDoor, results);
        }
示例#2
0
        public void ChangeEveryOtherDoorStartingWithSecondAfterLoopingOnce()
        {
            string doorBeingSent  = "##";
            string expectedDoor   = "@#";
            var    DoorInitialize = new DoorActions();
            string results        = DoorInitialize.MakeDoors(doorBeingSent);

            Assert.AreEqual(expectedDoor, results);
        }
示例#3
0
        public void ChangeEveryOtherEveryThirdEveryFourthDoorAfterLoopingOnce()
        {
            string doorBeingSent  = "@@##";
            string expectedDoor   = "#@#@";
            var    DoorInitialize = new DoorActions();
            string results        = DoorInitialize.MakeDoors(doorBeingSent);

            Assert.AreEqual(expectedDoor, results);
        }
示例#4
0
        public void CloseAnOpenDoor()
        {
            string doorBeingSent  = "@";
            string expectedDoor   = "#";
            var    DoorInitialize = new DoorActions();
            string results        = DoorInitialize.MakeDoors(doorBeingSent);

            Assert.AreEqual(expectedDoor, results);
        }