public void Test_IsolationLevel_Access2007()
 {
     //---------------Execute Test ----------------------
     DatabaseConnection conn =
         new DatabaseConnectionAccess2007("System.Data", "System.Data.OleDb.OleDbConnection");
     //---------------Test Result -----------------------
     Assert.AreEqual(IsolationLevel.ReadUncommitted, conn.IsolationLevel);
 }
 public void Test_CreateSqlFormatter_Access2007()
 {
     //---------------Set up test pack-------------------
     IDatabaseConnection dbConn = new DatabaseConnectionAccess2007("System.Data", "System.Data.SqlClient.SqlConnection");
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     ISqlFormatter defaultSqlFormatter = dbConn.SqlFormatter;
     //---------------Test Result -----------------------
     Assert.IsInstanceOf(typeof(SqlFormatterForAccess), defaultSqlFormatter);
     SqlFormatter sqlFormatter = (SqlFormatter)defaultSqlFormatter;
     Assert.IsNotNull(sqlFormatter);
     Assert.AreEqual("[", sqlFormatter.LeftFieldDelimiter);
     Assert.AreEqual("]", sqlFormatter.RightFieldDelimiter);
     Assert.AreEqual("TOP", sqlFormatter.LimitClauseAtBeginning);
     Assert.AreEqual("", sqlFormatter.LimitClauseAtEnd);
     Assert.AreEqual(sqlFormatter.LeftFieldDelimiter, dbConn.LeftFieldDelimiter);
     Assert.AreEqual(sqlFormatter.RightFieldDelimiter, dbConn.RightFieldDelimiter);
     //            StringAssert.Contains("TOP", dbConn.GetLimitClauseForBeginning(1));
     //            Assert.AreEqual("", dbConn.GetLimitClauseForEnd(1));
 }
 public void Test_CreateDatabaseConnection_Access2007()
 {
     DatabaseConnection conn =
         new DatabaseConnectionAccess2007("System.Data", "System.Data.OleDb.OleDbConnection");
     conn.ConnectionString =
         new DatabaseConfig(DatabaseConfig.Access2007, "test", "test", "test", "test", "1000").GetConnectionString();
     Assert.AreEqual
         ("System.Data.OleDb", conn.TestConnection.GetType().Namespace,
          "Namespace of Access connection is wrong.");
 }