Ejemplo n.º 1
0
        public void IsAnagram_SecondWordIsAnagramOfFirst_false()
        {
            string firstWord  = "bread";
            string secondWord = "board";

            AnagramCheck newAnagram = new AnagramCheck(firstWord, secondWord);

            Assert.Equal(false, newAnagram.AnagramChecker());
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            string mytext1 = "dog";
            string mytext2 = "god";

            bool result = AnagramCheck.AnagramChecker(mytext1, mytext2);

            Console.WriteLine("The two text is anagram of each other: " + result);
            Console.ReadLine();
        }