Exemplo n.º 1
0
        public void CapitalLettersInsideString()
        {
            //arrange
            CharInvertor charInvertor = new CharInvertor();

            string sourceString   = "TeSttEst";
            string expectedString = "Tsettset";

            //act
            string result = charInvertor.CharInversion(sourceString);

            //assert
            Assert.AreEqual(expectedString, result);
        }
Exemplo n.º 2
0
        public void FirstLetterCapitalized()
        {
            //arrange
            CharInvertor charInvertor = new CharInvertor();

            string sourceString   = "Logisys";
            string expectedString = "Sysigol";

            //act
            string result = charInvertor.CharInversion(sourceString);

            //assert
            Assert.AreEqual(expectedString, result);
        }
Exemplo n.º 3
0
        public void NonLetterChars()
        {
            //arrange
            CharInvertor charInvertor = new CharInvertor();

            string sourceString   = "1235,";
            string expectedString = ",5321";

            //act
            string result = charInvertor.CharInversion(sourceString);

            //assert
            Assert.AreEqual(expectedString, result);
        }