Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e500ea2

Browse files
Adding an integration test for Mac Git LFS
1 parent 4ca3256 commit e500ea2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/tests/IntegrationTests/Git/GitSetupTests.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)