public void RestoreCallsPackagesRestorerWithDefaultConfigIfPathIsFolder()
        {
            const string expectedPath = @"C:\defaultConfig.json";

             var packagesRestorer = new StubPackagesRestorer();
             var testSubject = new SaucyCommandLine(packagesRestorer, new SaucySettings { ConfigFile = "defaultConfig.json" });

             testSubject.Restore(true, @"C:\");

             Assert.That(packagesRestorer.RestoreCallCount, Is.EqualTo(1));
             Assert.That(packagesRestorer.LastRestoreConfigPathArg, Is.EqualTo(expectedPath));
        }
        public void RestoreCallsPackagesRestorerWithExplicitConfig()
        {
            var expectedPath = Path.Combine(Environment.CurrentDirectory, "myConfig.json");

             var packagesRestorer = new StubPackagesRestorer();
             var testSubject = new SaucyCommandLine(packagesRestorer, new SaucySettings());

             testSubject.Restore(true, "myConfig.json");

             Assert.That(packagesRestorer.RestoreCallCount, Is.EqualTo(1));
             Assert.That(packagesRestorer.LastRestoreConfigPathArg, Is.EqualTo(expectedPath));
        }
        public void RestoreCallsPackagesRestorerWithAbsoluteExplicitConfig()
        {
            const string expectedPath = @"C:\myConfig.json";

             var packagesRestorer = new StubPackagesRestorer();
             var testSubject = new SaucyCommandLine(packagesRestorer, new SaucySettings());

             testSubject.Restore(true, @"C:\myConfig.json");

             Assert.That(packagesRestorer.RestoreCallCount, Is.EqualTo(1));
             Assert.That(packagesRestorer.LastRestoreConfigPathArg, Is.EqualTo(expectedPath));
        }