public void TestMethod_CountWordsFromDictionary_no_word() { Dictionary <string, int> source = new Dictionary <string, int> { }; const int expected = 0; int result = AIHelper.CountWordsFromDictionary(source); Assert.AreEqual(result, expected); }
public void TestMethod_CountWordsFromDictionary_three_words_one_each() { Dictionary <string, int> source = new Dictionary <string, int> { { "man", 2 }, { "men", 2 }, { "girl", 2 } }; const int expected = 6; int result = AIHelper.CountWordsFromDictionary(source); Assert.AreEqual(result, expected); }