public async Task AcceptAllSingle() { await using var tracker = new RecordingTracker(); tracker.AddDelete(file1); tracker.AcceptAll(); tracker.AssertEmpty(); }
public async Task AcceptAllSingle() { await using var tracker = new RecordingTracker(); tracker.AddMove(file1, file1, "theExe", "theArguments", true, null); tracker.AcceptAll(); tracker.AssertEmpty(); }
public async Task Simple() { await using var tracker = new RecordingTracker(); tracker.AddDelete(file1); tracker.AddMove(file2, file2, "theExe", "theArguments", true, null); tracker.Clear(); tracker.AssertEmpty(); }
public async Task AddSingle_BackgroundDelete() { await using var tracker = new RecordingTracker(); tracker.AddDelete(file1); File.Delete(file1); Thread.Sleep(5000); tracker.AssertEmpty(); }
public async Task AddSingle_BackgroundDelete() { await using var tracker = new RecordingTracker(); tracker.AddMove(file1, file1, "theExe", "theArguments", true, null); File.Delete(file1); Thread.Sleep(3000); tracker.AssertEmpty(); }