Пример #1
0
        public void IsUnderGitRepo_no_git_not_logged()
        {
            _options.Log = true;

            var test = new ActionLog(_repoPathsNoGit, _options, _hitManager);

            test.Process(_info);

            _hitManager.Received(0).LogCurrentDirectory();
        }
Пример #2
0
        public void IsUnderGitRepo__logOnly_logged()
        {
            _options.LogOnly = true;
            var info = new GitChangeDirectoryInfo();

            var test = new ActionLog(_repoPaths, _options, _hitManager);

            test.Process(info);

            _hitManager.Received(1).LogCurrentDirectory();
            Assert.IsTrue(_options.DoneProcessing);
        }