public void GetCommitHashTest()
        {
            GetCommitHash testTask = new GetCommitHash();

            testTask.ProjectDir = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "Data", "BuildTaskTests"));
            Console.WriteLine(testTask.ProjectDir);
            Assert.IsTrue(testTask.Execute());
            Console.WriteLine(testTask.CommitShortHash);
            Assert.AreEqual("3b9c39e", testTask.CommitShortHash);
            Assert.AreEqual(0, testTask.Log.Messages.Count);
        }
        public void GetCommitHashTest_NoGitFolder()
        {
            GetCommitHash testTask = new GetCommitHash();

            testTask.ProjectDir = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "Nothing", "BuildTaskTests"));
            Console.WriteLine(testTask.ProjectDir);
            Assert.IsTrue(testTask.Execute());
            Console.WriteLine(testTask.CommitShortHash);
            Assert.AreEqual("local", testTask.CommitShortHash);
            Assert.AreEqual(1, testTask.Log.Messages.Count);
            Assert.AreEqual("High:    'git' command not found, unable to retrieve current commit hash.", testTask.Log.Messages.First());
        }