public void ThrowsWhenPathFromConfigDoesntExist()
        {
            var sut = new FakeCommandLineScm();

            var config = new Config();

            config.Scms.Add(new ConfigScm {
                Name = sut.ShortName, Path = sut.FakeCommandNameNotExisting
            });

            sut.Context = FakeContext.BuildFakeContextWithConfig(config);

            Assert.Throws <FileNotFoundException>(() => sut.IsOnThisComputer());
        }
        public void ReallyExecutesWithPathFromConfig()
        {
            var sut = new FakeCommandLineScm();

            var config = new Config();

            config.Scms.Add(new ConfigScm {
                Name = sut.ShortName, Path = sut.FakeCommandName
            });

            sut.Context = FakeContext.BuildFakeContextWithConfig(config);

            var result = sut.IsOnThisComputer();

            Assert.True(result);
        }