Exemplo n.º 1
0
        public void SlantedCipherTestCase2()
        {
            var numberOfRows   = 3;
            var encodedString  = "mnes__ya_____mi";
            var expectedOutput = "my name is";
            var actualOutput   = SlantedCipher.Solve(numberOfRows, encodedString);

            Assert.AreEqual(expectedOutput, actualOutput);
        }
Exemplo n.º 2
0
        public void SlantedCipherTestCase1()
        {
            var numberOfRows   = 2;
            var encodedString  = "hlowrd_el_ol";
            var expectedOutput = "hello world";
            var actualOutput   = SlantedCipher.Solve(numberOfRows, encodedString);

            Assert.AreEqual(expectedOutput, actualOutput);
        }