public void TestClose() { testName = "TestClose"; SetUpTest(true); DatabaseEnvironment env; LogCursor logCursor; RecnoDatabase db; Logging(testHome, testName, out env, out db); // Get log cursor to read/write log. logCursor = env.GetLogCursor(); // Close the log cursor and env. logCursor.Close(); db.Close(); env.Close(); }