public async Task AcceptSingle()
    {
        await using var tracker = new RecordingTracker();
        var tracked = tracker.AddDelete(file1);

        tracker.Accept(tracked);
        tracker.AssertEmpty();
    }
Beispiel #2
0
    public async Task AcceptSingle()
    {
        await using var tracker = new RecordingTracker();
        var tracked = tracker.AddMove(file1, file1, "theExe", "theArguments", true, null);

        tracker.Accept(tracked);
        tracker.AssertEmpty();
    }
    public async Task AcceptSingle_NotEmpty()
    {
        await using var tracker = new RecordingTracker();
        var tracked = tracker.AddDelete(file1);

        tracker.AddDelete(file2);
        tracker.Accept(tracked);
        Assert.Equal(1, tracker.Deletes.Count);
        Assert.True(tracker.TrackingAny);
    }
Beispiel #4
0
    public void AcceptSingle_NotEmpty()
    {
        var tracker = new RecordingTracker();
        var tracked = tracker.AddMove(file1, file1, "theExe", "theArguments", true, null);

        tracker.AddMove(file2, file2, "theExe", "theArguments", true, null);
        tracker.Accept(tracked);
        Assert.Equal(1, tracker.Moves.Count);
        Assert.True(tracker.TrackingAny);
    }