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

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

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

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