Esempio n. 1
0
        public void RecognizesShuffledAlphabetsAsAnagrams()
        {
            AnagramChecker checker = new AnagramChecker();

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

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