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()
6969
7070
7171 [ Test ]
72- public void VerifyGitLfsBundle ( )
72+ public void VerifyWindowsGitLfsBundle ( )
7373 {
7474 var environmentPath = NPath . CreateTempDirectory ( "integration-test-environment" ) ;
7575
@@ -86,5 +86,25 @@ public void VerifyGitLfsBundle()
8686 var calculateMd5 = NPath . FileSystem . CalculateMD5 ( gitLfsPath ) ;
8787 Assert . Equals ( calculateMd5 . ToUpper ( ) , GitInstaller . WindowsGitLfsExecutableMD5 . ToUpper ( ) ) ;
8888 }
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+ }
89109 }
90110}
You can’t perform that action at this time.
0 commit comments