void () { VirtualFile file = tempDirectory.newVirtualFile("a/b/c/test.txt"); VirtualFile newParent = tempDirectory.newVirtualDirectory("a/b/d"); checkEvents(""" Before: VFileCopyEvent->new.txt After: VFileCopyEvent->new.txt Before: VFileDeleteEvent->test.txt After: VFileDeleteEvent->test.txt """, new VFileCopyEvent(this, file, newParent, "new.txt"), new VFileDeleteEvent(this, file)); }