コード例 #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);
        }