Skip to content

Commit

Permalink
renamed DownloadSuccessfulCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Dec 17, 2023
1 parent b8d621e commit 38a3dc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Downloader.Test/Helper/DownloadServiceEventsState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class DownloadServiceEventsState
{
public bool DownloadStarted { get; set; }
public string ActualFileName { get; set; }
public bool DownloadSuccessfullCompleted { get; set; }
public bool DownloadSuccessfulCompleted { get; set; }
public bool IsDownloadCancelled { get; set; }
public bool DownloadProgressIsCorrect { get; set; } = true;
public int DownloadProgressCount { get; set; } = 0;
Expand All @@ -25,9 +25,9 @@ public DownloadServiceEventsState(IDownloadService downloadService)
};

downloadService.DownloadFileCompleted += (s, e) => {
DownloadSuccessfullCompleted = e.Error == null && !e.Cancelled;
DownloadSuccessfulCompleted = e.Error == null && !e.Cancelled;
DownloadError = e.Error;
IsDownloadCancelled = DownloadSuccessfullCompleted == false && DownloadError == null;
IsDownloadCancelled = DownloadSuccessfulCompleted == false && DownloadError == null;
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public async Task TestPackageDataAfterCompletionWithSuccess()

// assert
Assert.Equal(url, Package.Urls.First());
Assert.True(states.DownloadSuccessfullCompleted);
Assert.True(states.DownloadSuccessfulCompleted);
Assert.True(states.DownloadProgressIsCorrect);
Assert.Null(states.DownloadError);
Assert.True(Package.IsSaveComplete);
Expand Down

0 comments on commit 38a3dc9

Please sign in to comment.