public void HandleRenameFolderEvent() {
var handler = new RenamedFileSystemEventHandler(this.queue.Object, this.fsFactory.Object);
string newPath = Path.Combine(RootPath, this.newName);
string oldPath = Path.Combine(RootPath, this.oldName);
this.fsFactory.Setup(f => f.IsDirectory(newPath)).Returns((bool?)true);
handler.Handle(null, this.CreateEvent(this.oldName, this.newName));
this.queue.Verify(
q =>
q.AddEvent(
It.Is<FSMovedEvent>(e => e.OldPath == oldPath && e.Name == this.newName && e.IsDirectory == true && e.LocalPath == newPath)),
Times.Once());
this.queue.VerifyThatNoOtherEventIsAddedThan<FSMovedEvent>();
}