Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 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);
     }
 }