예제 #1
0
        public void TestAnagramMaker_WhenOneStringEmpty_ThenFalse()
        {
            //arrange
            string firstString  = "nono";
            string secondString = "";

            //act
            bool output = false;

            //assert
            Assert.AreEqual(output, Anagram.AnagramChecker(firstString, secondString));
        }
예제 #2
0
        public void TestAnagramMaker_WhenStringsEqualsLenghtWithUpperLetter_ThenTrue()
        {
            //arrange
            string firstString  = "nono";
            string secondString = "NoNo";

            //act
            bool output = false;

            //assert
            Assert.AreEqual(output, Anagram.AnagramChecker(firstString, secondString));
        }
예제 #3
0
        public void TestAnagramMaker_WhenStringsEqualsLenghtButNotAnagram_ThenFalse()
        {
            //arrange
            string firstString  = "kutyamutya";
            string secondString = "nuoyaluzia";

            //act
            bool output = false;

            //assert
            Assert.AreEqual(output, Anagram.AnagramChecker(firstString, secondString));
        }
예제 #4
0
        public void TestAnagramMaker_WhenStringsEqualsLenghtWithSpace_ThenFalse()
        {
            //arrange
            string firstString  = "kutyamutya";
            string secondString = "tyatya muku";

            //act
            bool output = false;

            //assert
            Assert.AreEqual(output, Anagram.AnagramChecker(firstString, secondString));
        }
예제 #5
0
        public void TestAnagramMaker_WhenStringsDifferentLenght_ThenFalse()
        {
            //arrange
            string firstString  = "kutyamutya";
            string secondString = "nyuszifulimulike";

            //act
            bool output = false;

            //assert
            Assert.AreEqual(output, Anagram.AnagramChecker(firstString, secondString));
        }