This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/IntegrationTests/Git Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public bool IsGitLfsExtracted()
96
96
return false ;
97
97
}
98
98
99
- var calculateMd5 = ( string ) environment . FileSystem . CalculateFileMD5 ( ( string ) GitLfsExecutablePath ) ;
99
+ var calculateMd5 = environment . FileSystem . CalculateFileMD5 ( GitLfsExecutablePath ) ;
100
100
logger . Trace ( "GitLFS MD5: {0}" , calculateMd5 ) ;
101
101
var md5 = environment . IsWindows ? WindowsGitLfsExecutableMD5 : MacGitLfsExecutableMD5 ;
102
102
if ( String . Compare ( calculateMd5 , md5 , true ) != 0 )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public async Task InstallGit()
41
41
gitLfsDestinationPath = gitLfsDestinationPath . Combine ( "libexec" , "git-core" , "git-lfs.exe" ) ;
42
42
gitLfsDestinationPath . FileExists ( ) . Should ( ) . BeTrue ( ) ;
43
43
44
- var calculateMd5 = ( string ) NPath . FileSystem . CalculateFileMD5 ( ( string ) gitLfsDestinationPath ) ;
44
+ var calculateMd5 = NPath . FileSystem . CalculateFileMD5 ( gitLfsDestinationPath ) ;
45
45
Assert . IsTrue ( string . Compare ( calculateMd5 , GitInstaller . WindowsGitLfsExecutableMD5 , true ) == 0 ) ;
46
46
47
47
setupDone = await gitSetup . SetupIfNeeded ( new Progress < float > ( x => percent = x ) ) ;
@@ -83,7 +83,7 @@ public void VerifyWindowsGitLfsBundle()
83
83
84
84
gitLfsPath . Exists ( ) . Should ( ) . BeTrue ( ) ;
85
85
86
- var calculateMd5 = ( string ) NPath . FileSystem . CalculateFileMD5 ( ( string ) gitLfsPath ) ;
86
+ var calculateMd5 = NPath . FileSystem . CalculateFileMD5 ( gitLfsPath ) ;
87
87
calculateMd5 . ToLower ( ) . Should ( ) . Be ( GitInstaller . WindowsGitLfsExecutableMD5 . ToLower ( ) ) ;
88
88
}
89
89
@@ -103,7 +103,7 @@ public void VerifyMacGitLfsBundle()
103
103
104
104
gitLfsPath . Exists ( ) . Should ( ) . BeTrue ( ) ;
105
105
106
- var calculateMd5 = ( string ) NPath . FileSystem . CalculateFileMD5 ( ( string ) gitLfsPath ) ;
106
+ var calculateMd5 = NPath . FileSystem . CalculateFileMD5 ( gitLfsPath ) ;
107
107
calculateMd5 . ToLower ( ) . Should ( ) . Be ( GitInstaller . MacGitLfsExecutableMD5 . ToLower ( ) ) ;
108
108
}
109
109
}
You can’t perform that action at this time.
0 commit comments