protected void GivenFileDeleteSucceeds(string filePath) { LogShipperFileManager.Setup(x => x.LockAndDeleteFile(filePath)).Callback((string file) => { LogFiles = LogFiles.Where(x => !string.Equals(x, file, StringComparison.OrdinalIgnoreCase)).ToArray(); }); }