示例#1
0
        public void GetInvertedWord_WhenInputIsNull_ShouldReturnNull()
        {
            WordInverter classToTest = new WordInverter();

            string input = null;

            classToTest.GetInvertedWord(input);

        }
示例#2
0
        public void GetInvertedWord_WhenInputIsMacdara_ShouldReturnAradcam()
        {
            WordInverter classToTest = new WordInverter();

            var input = "Macdara";

            var expectedResult = "aradcaM";
           
            var actualResult = classToTest.GetInvertedWord(input);

            Assert.AreEqual(expectedResult, actualResult);
        }