コード例 #1
0
 public override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     server = new TestWebServer.HttpServer(SolutionDirectory.Combine("files"), 50000);
     Task.Factory.StartNew(server.Start);
     ApplicationConfiguration.WebTimeout = 10000;
 }
コード例 #2
0
        public override void TestFixtureSetUp()
        {
            base.TestFixtureSetUp();
            var filesToServePath = SolutionDirectory.Combine("files");

            ApplicationConfiguration.WebTimeout = 50000;

            AssemblyResources.ToFile(ResourceType.Platform, "git.zip", filesToServePath, new DefaultEnvironment());
            AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip", filesToServePath, new DefaultEnvironment());
            AssemblyResources.ToFile(ResourceType.Platform, "git.zip.md5", filesToServePath, new DefaultEnvironment());
            AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip.md5", filesToServePath, new DefaultEnvironment());

            server = new TestWebServer.HttpServer(SolutionDirectory.Combine("files"));
            Task.Factory.StartNew(server.Start);
        }
コード例 #3
0
        public void VerifyMacGitLfsBundle()
        {
            var environmentPath = NPath.CreateTempDirectory("integration-test-environment");

            var gitLfsPath = environmentPath.Combine("git-lfs");

            gitLfsPath.Exists().Should().BeFalse();

            var inputZipFile = SolutionDirectory.Combine("PlatformResources", "mac", "git-lfs.zip");

            var fastZip = new FastZip();

            fastZip.ExtractZip(inputZipFile, environmentPath, null);

            gitLfsPath.Exists().Should().BeTrue();

            var calculateMd5 = NPath.FileSystem.CalculateMD5(gitLfsPath);

            calculateMd5.ToLower().Should().Be(GitInstaller.MacGitLfsExecutableMD5.ToLower());
        }
コード例 #4
0
        public void VerifyGitLfsBundle()
        {
            var environmentPath = NPath.CreateTempDirectory("integration-test-environment");

            var gitLfsPath = environmentPath.Combine("git-lfs.exe");

            gitLfsPath.Exists().Should().BeFalse();

            var inputZipFile = SolutionDirectory.Combine("PlatformResources", "windows", "git-lfs.zip");

            var fastZip = new FastZip();

            fastZip.ExtractZip(inputZipFile, environmentPath, null);

            gitLfsPath.Exists().Should().BeTrue();

            var calculateMd5 = NPath.FileSystem.CalculateMD5(gitLfsPath);

            Assert.IsTrue(string.Compare(calculateMd5, GitInstaller.WindowsGitLfsExecutableMD5, true) == 0);
        }