public void Dispose() { // only if there were no other test failures. if (FailureMarker.WasSuccessful()) { if (file.Exists) { try { TestUtil.Rm(file); } catch (IOException e) { throw new IOException("Could not remove temporary location '" + file.FullName + "', created at stack trace:\n" + CreationStack, e); } } } }