예제 #1
0
        public void StringTranslit_EnglishRussian_SymbolsContainedInCombinations(string stringForTranslit, string expected)
        {
            StringTransliterator stringTransliterator = new StringTransliterator();
            string actual = stringTransliterator.StringTranslit(stringForTranslit);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void StringTranslit_RussianEnglish_LettersToCombination()
        {
            string stringForTranslit = "ёжхцчшщюя";
            string expected          = "yozhkhtschshschyuya";

            StringTransliterator stringTransliterator = new StringTransliterator();
            string actual = stringTransliterator.StringTranslit(stringForTranslit);

            Assert.AreEqual(expected, actual);
        }
예제 #3
0
        public void StringTranslit_RussianEnglish_SimpleWord()
        {
            string stringForTranslit = "абвгдек";
            string expected          = "abvgdek";

            StringTransliterator stringTransliterator = new StringTransliterator();
            string actual = stringTransliterator.StringTranslit(stringForTranslit);

            Assert.AreEqual(expected, actual);
        }
예제 #4
0
        public void StringTranslit_EnglishRussian_SimpleWord()
        {
            string stringForTranslit = "ptokan";
            string expected          = "птокан";

            StringTransliterator stringTransliterator = new StringTransliterator();
            string actual = stringTransliterator.StringTranslit(stringForTranslit);

            Assert.AreEqual(expected, actual);
        }