public void TestConstructQuery() { QueryService queryService = new QueryService(); foreach (KeyValuePair <string, Query> kvp in GetConstructTestCases) { Query query = queryService.ConstructQuery(kvp.Key); Assert.AreEqual(kvp.Value.Command, query.Command); Assert.AreEqual(kvp.Value.Argument, query.Argument); Assert.AreEqual(kvp.Value.Key, query.Key); } }
public void TestConstructQuery() { QueryService queryService = new QueryService(); foreach(KeyValuePair<string, Query> kvp in GetConstructTestCases) { Query query = queryService.ConstructQuery(kvp.Key); Assert.AreEqual(kvp.Value.Command, query.Command); Assert.AreEqual(kvp.Value.Argument, query.Argument); Assert.AreEqual(kvp.Value.Key, query.Key); } }