void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); VirtualFile file2 = tempDirectory.newVirtualFile("a/b/c/test2.txt"); checkEvents(""" Before: VFileDeleteEvent->test2.txt After: VFileDeleteEvent->test2.txt Before: VFilePropertyChangeEvent->test.txt After: VFilePropertyChangeEvent->test2.txt """, new VFileDeleteEvent(this, file2), new VFilePropertyChangeEvent(this, file, VirtualFile.PROP_NAME, file.getName(), file2.getName())); }