Exemplo n.º 1
0
        public void Test_set_toDataTable_month()
        {
            DBConnection db = new DBConnection();

            db.connect(SERVER, PORT);
            BasicSet  tb = (BasicSet)db.run("set(2018.09M 2018.08M)");
            DataTable dt = tb.toDataTable();

            Assert.AreEqual(2, dt.Rows.Count);
        }
Exemplo n.º 2
0
        public void Test_set_toDataTable_timestamp()
        {
            DBConnection db = new DBConnection();

            db.connect(SERVER, PORT);
            BasicSet  tb = (BasicSet)db.run("set(2018.09.01T01:01:01.001 2018.08.01T01:01:01.001)");
            DataTable dt = tb.toDataTable();

            Assert.AreEqual(2, dt.Rows.Count);
        }
Exemplo n.º 3
0
        public void Test_set_toDataTable_int()
        {
            DBConnection db = new DBConnection();

            db.connect(SERVER, PORT);
            BasicSet  tb = (BasicSet)db.run("set(8 9 9 5 6)");
            DataTable dt = tb.toDataTable();

            Assert.AreEqual(4, dt.Rows.Count);
        }