[TestCase("THE DH AH0")] // No stress public void Test_StressPatternFromWord_BadInputsReturnNull(string input) { Word word = Word.FromDictionaryLine(input); StressPattern stress = StressPattern.FromWord(word); Assert.IsNull(stress); }
public void Test_StressPatternFromWord(string input, string expected) { Word word = Word.FromDictionaryLine(input); StressPattern stress = StressPattern.FromWord(word); Assert.AreEqual(expected, stress.Symbol()); }