예제 #1
0
        public void TestVisitThreeTimes()
        {
            doors = new OneHundredDoors();
            doors.Visit(3);

            actual = doors.GetDoorStatus();

            Assert.IsFalse(actual);
        }
예제 #2
0
        public void TestVisit50thDoorWith100Times()
        {
            doors = new OneHundredDoors();
            doors.Visit(100);

            actual = doors.GetDoorStatus(50);

            Assert.IsFalse(actual);
        }
예제 #3
0
        public void TestVisitOneTime()
        {
            doors = new OneHundredDoors();
            doors.Visit();

            actual = doors.GetDoorStatus();

            Assert.IsTrue(actual);
        }
예제 #4
0
        public void Test1000Doors()
        {
            doors = new OneHundredDoors(1000);
            doors.Visit(1000);

            actual = doors.GetDoorStatus(1000);

            Assert.IsFalse(actual);
        }