public void TestMethod5() { int q_id; q_id = 4; ChatBotDBEntities entities = new ChatBotDBEntities(); Question first_question = entities.Questions.Find(Id); SelectMonitor monitorObj = new SelectMonitor(); result = monitorObj.FindRequiredProduct(response); int len = expected.Count(); for (int index = 0; index < len; index++) { Assert.AreEqual(expected.ElementAt(index), result.ElementAt(index)); } }
public void TestMethod4() { string[] response; response = new string[9] { "https://localhost:44342", "api", "chat", "Yes", "no", "yes", "Yes", "No", "Yes" }; List <string> expected = new List <string>(); expected.Add("M_0010"); SelectMonitor monitorObj = new SelectMonitor(); List <String> result = new List <String>(); result = monitorObj.FindRequiredProduct(response); int len = expected.Count(); for (int index = 0; index < len; index++) { Assert.AreEqual(expected.ElementAt(index), result.ElementAt(index)); } }