public void IsAnagram_SecondWordIsAnagramOfFirst_false() { string firstWord = "bread"; string secondWord = "board"; AnagramCheck newAnagram = new AnagramCheck(firstWord, secondWord); Assert.Equal(false, newAnagram.AnagramChecker()); }
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(); }