Ejemplo n.º 1
0
        public void CheckMapsString()
        {
            string expectedResult = "ABC";

            string actualResult = LetterMapper.CreateLettersString(new Letters[] { Letters.A, Letters.B, Letters.C });

            Assert.That(actualResult, Is.EqualTo(expectedResult));
        }
Ejemplo n.º 2
0
        public string GetOutput(string text)
        {
            Letters[] inputText = LetterMapper.CreateLettersArray(text);

            Letters[] outputText = new Letters[inputText.Length];

            for (int i = 0; i < inputText.Length; i++)
            {
                outputText[i] = GetOutput(inputText[i]);
            }

            return(LetterMapper.CreateLettersString(outputText));
        }