예제 #1
0
        public void Test_that_not_anagrams_are_false()
        {
            //arrange
            var comparer = new AnagramComparer();

            //act
            var res = comparer.CompareWords("wasp", "shop");

            //assert
            Assert.False(res);
        }
예제 #2
0
        public void Test_that_anagrams_are_true()
        {
            //arrange
            var comparer = new AnagramComparer();

            //act
            var res = comparer.CompareWords("leap", "pale");

            //assert
            Assert.True(res);
        }