Ejemplo n.º 1
0
        public void Execute_WaitFor3SecondsTimeoutSetTo0_NoTimeOut()
        {
            var query = "WAITFOR DELAY '00:00:03';";
            var cmd   = new OleDbCommand(query, new OleDbConnection(ConnectionStringReader.GetOleDbSql()))
            {
                CommandTimeout = 0
            };

            var qe = new OleDbExecutionEngine(cmd.Connection, cmd);

            Assert.DoesNotThrow(delegate { qe.Execute(); });
        }