public void ConvertWordToPhonemesTest(string word, string resultPhoneme) { ConverterWordToPhonemes converterWordToPhonemes = new ConverterWordToPhonemes(); var actualResult = converterWordToPhonemes.ConvertWordToPhonemes(word).ToString(); Assert.AreEqual(resultPhoneme, actualResult); }
public void SetWordTest(string word, string resultWord) { ConverterWordToPhonemes convererWordToPhonemes = new ConverterWordToPhonemes(); convererWordToPhonemes.SetWord(word); Assert.AreEqual(resultWord, convererWordToPhonemes.Word); }
public void SetStressTest(string word, int resultStress) { ConverterWordToPhonemes convererWordToPhonemes = new ConverterWordToPhonemes(); convererWordToPhonemes.SetWord(word); Assert.AreEqual(resultStress, convererWordToPhonemes.Stress); }
public void AddNullLetterTest(Letter letter) { ConverterWordToPhonemes converterWordToPhonemes = new ConverterWordToPhonemes(); Assert.Throws <NullReferenceException> ( () => converterWordToPhonemes.AddOtherLetterToPhonemes(letter) ); }
public void ConvertNullWordToPhonemesTest(string word) { ConverterWordToPhonemes converterWordToPhonemes = new ConverterWordToPhonemes(); Assert.Throws <NullReferenceException> ( () => converterWordToPhonemes.ConvertWordToPhonemes(word) ); }
public void AddNotRussianLetterTest(char letter) { Letter myLetter = new Letter { Current = letter }; ConverterWordToPhonemes converterWordToPhonemes = new ConverterWordToPhonemes(); Assert.Throws <ArgumentOutOfRangeException> ( () => converterWordToPhonemes.AddOtherLetterToPhonemes(myLetter) ); }