Exemple #1
0
        public void TestMethodOfTranslite_NoCorrectFormat_ThrowFormatException(string stringWithUnkownSymbols)
        {
            var    translitor = new Dev_3.StringTranslitor();
            Action actual     = () => translitor.Translite(stringWithUnkownSymbols);

            Assert.ThrowsException <FormatException>(actual);
        }
Exemple #2
0
        public void TestMethodOfTransliteFromRussianToEnglish(string expected, string actual)
        {
            var translitor = new Dev_3.StringTranslitor();

            Assert.AreEqual(expected, translitor.Translite(actual));
        }