示例#1
0
 private static void Test_Command_ResetCommandTimeout()
 {
     using (OleDbCommand cmd = new OleDbCommand("select * from code;", conn))
     {
         Assert.AreEqual(cmd.CommandTimeout,30);
         cmd.CommandTimeout = 20;
         Assert.AreEqual(cmd.CommandTimeout, 20);
         cmd.ResetCommandTimeout();
         Assert.AreEqual(cmd.CommandTimeout, 30);
     }
 }