示例#1
0
        public void Test1()
        {
            TransformWord transform = new TransformWord(new List <string>()
            {
                "cat",
                "dog",
                "cog",
                "cot"
            });

            Assert.AreEqual(3, transform.Find("cat", "dog"));
        }
示例#2
0
        public void Test3()
        {
            TransformWord transform = new TransformWord(new List <string>()
            {
                "cat",
                "dog",
                "cog",
                "cot"
            });

            Assert.IsNull(transform.Find("cat", "asds"));
        }
示例#3
0
        public void Test5()
        {
            TransformWord transform = new TransformWord(new List <string>()
            {
                "abc",
                "abd",
                "ace",
                "acd",
                "bce"
            });

            Assert.AreEqual(4, transform.Find("abc", "bce"));
        }