Esempio n. 1
0
        public void TwoMixedUpWordsIsAnAnagram()
        {
            var service      = new AnagramChecker();
            var actualResult = service.IsThisAnAnagram("TAC", "CAT");

            Assert.True(actualResult);
        }
Esempio n. 2
0
        public void TwoIdenticalWordsAsAAnagram()
        {
            var service      = new AnagramChecker();
            var actualResult = service.IsThisAnAnagram("CAT", "CAT");

            Assert.True(actualResult);
        }
Esempio n. 3
0
        public void TweCompletelyDifferentWordsArentAnAngram()
        {
            var service      = new AnagramChecker();
            var actualResult = service.IsThisAnAnagram("DOG", "CAT");

            Assert.False(actualResult);
        }