Beispiel #1
0
        public void Git_GetCurrentRepository_NoLocalRepo_ReturnsNull()
        {
            string gitPath = GetGitPath();
            var    trace   = new NullTrace();
            var    git     = new GitProcess(trace, gitPath, Path.GetTempPath());

            string actual = git.GetCurrentRepository();

            Assert.Null(actual);
        }
Beispiel #2
0
        public void Git_GetCurrentRepository_LocalRepo_ReturnsNotNull()
        {
            CreateRepository(out string workDirPath);

            string gitPath = GetGitPath();
            var    trace   = new NullTrace();
            var    git     = new GitProcess(trace, gitPath, workDirPath);

            string actual = git.GetCurrentRepository();

            Assert.NotNull(actual);
        }