public void RetrieveExampleList_InvalidPartOfSpeechTest() { var expected = new List <string>() { string.Empty, string.Empty, string.Empty }; var examples = PartsOfSpeechHelper.RetrieveExampleList("not a word").ToList(); CollectionAssert.AreEqual(expected, examples); }
public void RetrieveSuggestedWord_InvalidPartOfSpeechTest() { var word = PartsOfSpeechHelper.RetrieveSuggestedWord("not a word"); Assert.AreEqual(string.Empty, word); }
public void RetrieveSuggestedWordTest() { var word = PartsOfSpeechHelper.RetrieveSuggestedWord("a noun"); Assert.AreNotEqual(string.Empty, word); }
public void RetrieveExampleListTest() { var examples = PartsOfSpeechHelper.RetrieveExampleList("a noun").ToList(); CollectionAssert.DoesNotContain(examples, string.Empty); }