This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
src/tests/IntegrationTests/Git Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public async Task InstallGit()
69
69
70
70
71
71
[ Test ]
72
- public void VerifyGitLfsBundle ( )
72
+ public void VerifyWindowsGitLfsBundle ( )
73
73
{
74
74
var environmentPath = NPath . CreateTempDirectory ( "integration-test-environment" ) ;
75
75
@@ -86,5 +86,25 @@ public void VerifyGitLfsBundle()
86
86
var calculateMd5 = NPath . FileSystem . CalculateMD5 ( gitLfsPath ) ;
87
87
Assert . Equals ( calculateMd5 . ToUpper ( ) , GitInstaller . WindowsGitLfsExecutableMD5 . ToUpper ( ) ) ;
88
88
}
89
+
90
+
91
+ [ Test ]
92
+ public void VerifyMacGitLfsBundle ( )
93
+ {
94
+ var environmentPath = NPath . CreateTempDirectory ( "integration-test-environment" ) ;
95
+
96
+ var gitLfsPath = environmentPath . Combine ( "git-lfs" ) ;
97
+ gitLfsPath . Exists ( ) . Should ( ) . BeFalse ( ) ;
98
+
99
+ var inputZipFile = SolutionDirectory . Combine ( "PlatformResources" , "mac" , "git-lfs.zip" ) ;
100
+
101
+ var fastZip = new FastZip ( ) ;
102
+ fastZip . ExtractZip ( inputZipFile , environmentPath , null ) ;
103
+
104
+ gitLfsPath . Exists ( ) . Should ( ) . BeTrue ( ) ;
105
+
106
+ var calculateMd5 = NPath . FileSystem . CalculateMD5 ( gitLfsPath ) ;
107
+ Assert . Equals ( calculateMd5 . ToUpper ( ) , GitInstaller . MacGitLfsExecutableMD5 . ToUpper ( ) ) ;
108
+ }
89
109
}
90
110
}
You can’t perform that action at this time.
0 commit comments