public void GivenIpaFromIpa_ExpectPositiveMatch() { var ipa = EnPronunciation.FromIpa("ðɪsɪzətɛst"); Assert.IsTrue(ipa.Phones.Count > 0); Assert.AreEqual("ðɪsɪzətɛst", ipa.Ipa); }
public void GivenNullArgument_FromArpabet_ExpectException() { Assert.ThrowsException <ArgumentNullException>(() => { var ipa = EnPronunciation.FromIpa(null); }); }
public void GivenInvalidIpa_FromIpa_ExpectException() { Assert.ThrowsException <ArgumentException>(() => { var ipa = EnPronunciation.FromIpa("This is not an IPA"); }); }