Beispiel #1
0
        public void DatabaseCenter_ExecuteQuery_Invalid()
        {
            DatabaseCenter database        = GetInst();
            int            affectedRecords = 0;
            var            result          = database.ExecuteQuery(testSqlBad, out affectedRecords);

            Assert.IsNull(result);
        }
Beispiel #2
0
        public void DatabaseCenter_ExecuteQuery_Null()
        {
            DatabaseCenter database        = GetInst();
            int            affectedRecords = 0;

            Assert.ThrowsException <ArgumentNullException>(
                () => database.ExecuteQuery(null, out affectedRecords)
                );
        }