Ejemplo n.º 1
0
        public void test_addSubQuery()
        {
            MatchQuery mq = new MatchQuery();

            mq.addSubQuery("test");
            Assert.AreEqual(1, mq.get_sub_queries().Count);
        }
Ejemplo n.º 2
0
        public void test_addSubQuery_null_string()
        {
            /*empty string should not add anything to list.*/
            MatchQuery mq = new MatchQuery();

            mq.addSubQuery(null);
            Assert.AreEqual(0, mq.get_sub_queries().Count);
        }