void (final ThrowableRunnable<? extends Exception> performAction, final String testName) { try { VirtualFile actualDirectory = myFixture.copyDirectoryToProject(testName + "/before", ""); performAction.run(); VirtualFile rootAfter = LocalFileSystem.getInstance().findFileByPath(getTestDataPath().replace(File.separatorChar, '/') + testName + "/after"); assertNotNull(rootAfter); PlatformTestUtil.assertDirectoriesEqual(rootAfter, actualDirectory); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } }