Пример #1
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);
        }
Пример #2
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);
        }
Пример #3
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);
        }
Пример #4
0
        public void Test_run_return_set()
        {
            DBConnection db = new DBConnection();

            db.connect(SERVER, PORT);
            BasicSet dict = (BasicSet)db.run("set(1 3 5)");

            Assert.AreEqual(3, dict.rows());
            Assert.AreEqual(1, dict.columns());
        }