Пример #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'));
 }