コード例 #1
0
        public void ReturnNumbersOfWordsWithSpecialChar()
        {
            string input = "hola a.";

            int[] expected = { 7, 14, 11, 0, 0 };

            CipherSolver c            = new CipherSolver();
            var          actualOutput = c.ConvertStringToNumbers(input);

            CollectionAssert.AreEqual(expected, actualOutput);
        }
コード例 #2
0
        public void ReturnNumberOfLowerLetter()
        {
            string input = "a";

            int[] expected = { 0 };

            CipherSolver c = new CipherSolver();

            var actualOutput = c.ConvertStringToNumbers(input);

            CollectionAssert.AreEqual(expected, actualOutput);
        }