public void TestMethodOfTranslite_NoCorrectFormat_ThrowFormatException(string stringWithUnkownSymbols) { var translitor = new Dev_3.StringTranslitor(); Action actual = () => translitor.Translite(stringWithUnkownSymbols); Assert.ThrowsException <FormatException>(actual); }
public void TestMethodOfTransliteFromRussianToEnglish(string expected, string actual) { var translitor = new Dev_3.StringTranslitor(); Assert.AreEqual(expected, translitor.Translite(actual)); }