예제 #1
0
 public void IsDoorOpen()
 {
     Assert.All("bcdef0123456789", c => Problem.IsDoorOpen(c));
 }
예제 #2
0
        public void SecondStar()
        {
            var actual = new Problem().SecondStar();

            Assert.Equal("502", actual);
        }
예제 #3
0
        public void FirstStar()
        {
            var actual = new Problem().FirstStar();

            Assert.Equal("DUDRDLRRRD", actual);
        }
예제 #4
0
        public void SecondStar_Example(string passcode, int expectedLength)
        {
            var length = Problem.LongestPath(passcode);

            Assert.Equal(expectedLength, length);
        }
예제 #5
0
        public void FirstStar_Example(string passcode, string expectedPath)
        {
            var path = Problem.ShortestPath(passcode);

            Assert.Equal(expectedPath, path);
        }
예제 #6
0
 public void IsDoorClosed()
 {
     Assert.False(Problem.IsDoorOpen('a'));
 }