Example #1
0
        public void RecognizesShuffledAlphabetsAsAnagrams()
        {
            AnagramChecker checker = new AnagramChecker();

            Assert.True(checker.WordPairIsAnagram("restful", "fluster"));
            Assert.True(checker.WordPairIsAnagram("forty five", "over fifty"));
        }
Example #2
0
        public void ReportsNonAnagrams()
        {
            AnagramChecker checker = new AnagramChecker();

            Assert.False(checker.WordPairIsAnagram("something", "else"));
        }