Example #1
0
        public async Task TestMercurial()
        {
            foreach (TestRepo repo in Factory.TestMercurial.Values)
            {
                ICommandInput commandInput = new TestCommands(repo.RepoPath);
                IRepoControl  repoControl  = new Mercurial();
                Assert.AreEqual(true, repoControl.Exists(commandInput));
                File.WriteAllText(repo.TestFilePath, $"Last Tested {DateTime.UtcNow.ToString()}\n{DateTime.UtcNow.Ticks}");
                await repoControl.CommitAsync(commandInput, "Unit Test");

                Assert.AreEqual(RepoStatus.CommitSucceeded, repoControl.Status);
            }
        }