Esempio n. 1
0
 public void TeatCanNOTFindKeyword()
 {
     Keywords keyword = new Keywords();
     string userInput = "anything else";
     bool expected = false;
     bool actual = keyword.IsAKeyword(userInput);
     Assert.AreEqual(expected, actual);
 }
Esempio n. 2
0
 public void TeatCanFindKeyword()
 {
     Keywords keyword = new Keywords();
     string userInput = "last";
     bool expected = true;
     bool actual = keyword.IsAKeyword(userInput);
     Assert.AreEqual( expected, actual);
 }
Esempio n. 3
0
 public void TestKeywordsContainsQuit()
 {
     Keywords keyword = new Keywords();
     string[] actual = keyword.SimpleKeywords();
     string[] expected = { "quit", "last" };
     CollectionAssert.Contains(actual, "quit");
 }