예제 #1
0
        public void ShouldReturnFalseIfOnStringIsEmpty(string word1, string word2)
        {
            var checker = new AnagramChecker();

            var result = checker.Check(word1, word2);

            Assert.False(result);
        }
예제 #2
0
        public void ShouldReturnTrueIfStringsAreAnagram(string word1, string word2)
        {
            var checker = new AnagramChecker();

            var result = checker.Check(word1, word2);

            Assert.True(result);
        }
예제 #3
0
        public void ShouldReturnFalseIfLengthIsDifferent(string word1, string word2)
        {
            var checker = new AnagramChecker();

            var result = checker.Check(word1, word2);

            Assert.False(result);
        }