Exemplo n.º 1
0
        public void TestValidateJumpPaths(string[] arr, int[] steps, bool expectedResult)
        {
            var graphProblems = new GraphProblems();

            var actualResult = graphProblems.ValidateJumpPaths(arr, steps);

            Assert.True(expectedResult == actualResult);
        }
Exemplo n.º 2
0
        public void TestLadderLength(string begin, string end, string[] wordList, int expectedCount)
        {
            var graphProblems = new GraphProblems();

            var actualCount = graphProblems.LadderLength(begin, end, wordList.ToList());

            Assert.Equal <int>(expectedCount, actualCount);
        }