Exemple #1
0
        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);
        }
Exemple #2
0
        public void RetrieveSuggestedWord_InvalidPartOfSpeechTest()
        {
            var word = PartsOfSpeechHelper.RetrieveSuggestedWord("not a word");

            Assert.AreEqual(string.Empty, word);
        }
Exemple #3
0
        public void RetrieveSuggestedWordTest()
        {
            var word = PartsOfSpeechHelper.RetrieveSuggestedWord("a noun");

            Assert.AreNotEqual(string.Empty, word);
        }
Exemple #4
0
        public void RetrieveExampleListTest()
        {
            var examples = PartsOfSpeechHelper.RetrieveExampleList("a noun").ToList();

            CollectionAssert.DoesNotContain(examples, string.Empty);
        }