Exemple #1
0
        public void No_directory_hit(string value)
        {
            var options = new GetGitChangeDirectoryCommandOptions {
                NameOrAlias = value, Last = true
            };
            var testCmd = new ActionLastDirectory(_repoPaths, options, _hitManager);

            testCmd.Process(_info);

            _hitManager.Received(0).GetHitList();
        }
Exemple #2
0
        public void Valid_returns_last_dir()
        {
            var options = new GetGitChangeDirectoryCommandOptions {
                Last = true
            };
            var testCmd = new ActionLastDirectory(_repoPaths, options, _hitManager);

            testCmd.Process(_info);

            _hitManager.Received(0).GetHitList();
            _hitManager.Received(1).GetLastUsedFolder();
            Assert.AreEqual(_lastHitFolder.Directory, _info.TargetDirectory);
        }