Example #1
0
        public void EmptyStringTest()
        {
            //act
            OutputEvenIndex inputString = new OutputEvenIndex(String.Empty);

            //assert
            Assert.Null(inputString.DeleteEvenIndex());
        }
Example #2
0
        public void EvenIndexWithSymbolsTest()
        {
            //arrange
            string str    = "r*2**jn// b _R _bBR_' ";
            string result = "r2*n/b_ bR'";
            //act
            OutputEvenIndex inputString = new OutputEvenIndex(str);

            //assert
            Assert.Equal(result, inputString.DeleteEvenIndex());
        }
Example #3
0
        public void EvenIndexTest()
        {
            //arrange
            string str    = "rjnbrb";
            string result = "rnr";
            //act
            OutputEvenIndex inputString = new OutputEvenIndex(str);

            //assert
            Assert.Equal(result, inputString.DeleteEvenIndex());
        }