Example #1
0
        public void TestMethod4()
        {
            var list = new List <string> {
                "a", "b", "c", "d", "e", "f"
            };
            var result = new Word_Ladder().LadderLength("a", "f", list);

            Assert.AreEqual(2, result);
        }
Example #2
0
        public void TestMethod2()
        {
            var list = new List <string> {
                "hot", "dot", "dog", "lot", "log"
            };
            var result = new Word_Ladder().LadderLength("hit", "cog", list);

            Assert.AreEqual(0, result);
        }