Exemplo n.º 1
0
        public void getNonExisitingWordEntry([Values("sdfsd")] string word)
        {
            WordAPIClient myManager = new WordAPIClient();

            WordDefinition myWord = myManager.getWordEntry(word);

            Assert.Null(myWord);
        }
Exemplo n.º 2
0
        public void getExisitingWordEntry([Values("unhinged", "power", "zephyr", "uncanny")] string word)
        {
            WordAPIClient myManager = new WordAPIClient();

            WordDefinition myWord = myManager.getWordEntry(word);

            Assert.NotNull(myWord);

            //format the result
            string formatedResult = buildEntry(myWord);

            Assert.Pass(formatedResult);
        }