Пример #1
0
        static void Main(string[] args)
        {
            AnagramC code = new AnagramC(@"C:\Users\USER\Desktop\Tendencias\Kata\TendenciasKata\Kata 3\INPUT.txt");

            code.AnagramSolution();
            code.LongestAnagramSet();
        }
Пример #2
0
        public void TestNoWords()
        {
            AnagramC code = new AnagramC(new string[] { " " });

            Assert.AreEqual(0, code.AnagramSolution().Count);
        }
Пример #3
0
        public void Several_Anagram_Return_Anagrams()
        {
            AnagramC code = new AnagramC(@"C:\Users\USER\Desktop\Tendencias\Kata\TendenciasKata\Kata 3\INPUT.txt");

            Assert.AreEqual(30404, code.AnagramSolution().Count);
        }
Пример #4
0
        public void W_Some_Anagram_Return_Anagram()
        {
            AnagramC code = new AnagramC(@"C:\Users\USER\Desktop\Tendencias\Kata\TendenciasKata\Kata 3\AnagramTests.txt");

            Assert.AreEqual(4, code.AnagramSolution().Count);
        }
Пример #5
0
        public void W_One_Anagram_Return_Anagram()
        {
            AnagramC code = new AnagramC(new string[] { "hola", "olah" });

            Assert.Contains("hola olah", code.AnagramSolution());
        }
Пример #6
0
        public void W_No_Anagram_Return_0()
        {
            AnagramC code = new AnagramC(new string[] { "hola", "pepe" });

            Assert.AreEqual(0, code.AnagramSolution().Count);
        }
Пример #7
0
        public void W_One_Word_Return_0()
        {
            AnagramC code = new AnagramC(new string[] { "hola" });

            Assert.AreEqual(0, code.AnagramSolution().Count);
        }