public void IsDoorOpen() { Assert.All("bcdef0123456789", c => Problem.IsDoorOpen(c)); }
public void SecondStar() { var actual = new Problem().SecondStar(); Assert.Equal("502", actual); }
public void FirstStar() { var actual = new Problem().FirstStar(); Assert.Equal("DUDRDLRRRD", actual); }
public void SecondStar_Example(string passcode, int expectedLength) { var length = Problem.LongestPath(passcode); Assert.Equal(expectedLength, length); }
public void FirstStar_Example(string passcode, string expectedPath) { var path = Problem.ShortestPath(passcode); Assert.Equal(expectedPath, path); }
public void IsDoorClosed() { Assert.False(Problem.IsDoorOpen('a')); }