This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
tests/IntegrationTests/Download Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,5 @@ public interface IFileSystem
44
44
char DirectorySeparatorChar { get ; }
45
45
bool ExistingPathIsDirectory ( string path ) ;
46
46
void SetCurrentDirectory ( string currentDirectory ) ;
47
- byte [ ] ReadAllBytes ( string path ) ;
48
47
}
49
48
}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ protected override void Run(bool success)
130
130
result = Download ( ) ;
131
131
if ( result && ValidationHash != null )
132
132
{
133
- var md5 = fileSystem . CalculateMD5 ( Destination ) ;
133
+ var md5 = fileSystem . CalculateFileMD5 ( Destination ) ;
134
134
result = md5 . Equals ( ValidationHash , StringComparison . CurrentCultureIgnoreCase ) ;
135
135
136
136
if ( ! result )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public async Task TestDownloadTask()
31
31
var downloadPathBytes = fileSystem . ReadAllBytes ( downloadPath ) ;
32
32
Logger . Trace ( "File size {0} bytes" , downloadPathBytes . Length ) ;
33
33
34
- var md5Sum = fileSystem . CalculateMD5 ( downloadPath ) ;
34
+ var md5Sum = fileSystem . CalculateFileMD5 ( downloadPath ) ;
35
35
md5Sum . Should ( ) . Be ( TestDownloadMD5 . ToUpperInvariant ( ) ) ;
36
36
37
37
var random = new Random ( ) ;
@@ -48,7 +48,7 @@ public async Task TestDownloadTask()
48
48
var downloadHalfPathBytes = fileSystem . ReadAllBytes ( downloadHalfPath ) ;
49
49
Logger . Trace ( "File size {0} Bytes" , downloadHalfPathBytes . Length ) ;
50
50
51
- md5Sum = fileSystem . CalculateMD5 ( downloadPath ) ;
51
+ md5Sum = fileSystem . CalculateFileMD5 ( downloadPath ) ;
52
52
md5Sum . Should ( ) . Be ( TestDownloadMD5 . ToUpperInvariant ( ) ) ;
53
53
}
54
54
You can’t perform that action at this time.
0 commit comments