public void InstallCommandUsesOutputDirectoryAsInstallPathIfSpecified() { // Arrange var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider()) { OutputDirectory = @"Bar\Baz" }; // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(@"Bar\Baz", installPath); }
public void InstallCommandUsesCurrentDirectoryAsInstallPathIfNothingSpecified() { // Arrange var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider()); // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(Directory.GetCurrentDirectory(), installPath); }
public void InstallCommandUsesCurrentDirectoryAsInstallPathIfNothingSpecified() { // Arrange var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider()); // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(Directory.GetCurrentDirectory(), installPath); }
public void InstallCommandCanUsePathsRelativeToConfigFile(string input, string expected) { // Arrange var fileSystem = GetFileSystemWithDefaultConfig(input); var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider(), fileSystem, settings: Settings.LoadDefaultSettings(fileSystem)); // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(expected, installPath); }
public void InstallCommandUsesRepositoryPathFromConfigIfSpecified() { // Arrange var fileSystem = GetFileSystemWithDefaultConfig(); var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider(), fileSystem, settings: Settings.LoadDefaultSettings(fileSystem)); // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(@"C:\This\Is\My\Install\Path", installPath); }
public void InstallCommandUsesOutputDirectoryAsInstallPathIfSpecified() { // Arrange var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider()) { OutputDirectory = @"Bar\Baz" }; // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(@"Bar\Baz", installPath); }
public void InstallCommandOutPathTakesPrecedenceOverRepositoryPath() { // Arrange var fileSystem = GetFileSystemWithDefaultConfig(); var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider(), fileSystem, settings: Settings.LoadDefaultSettings(fileSystem)) { OutputDirectory = @"Bar\Baz" }; // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(@"Bar\Baz", installPath); }
public void InstallCommandCanUsePathsRelativeToConfigFile(string input, string expected) { // Arrange var fileSystem = GetFileSystemWithDefaultConfig(input); var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider(), fileSystem, settings: Settings.LoadDefaultSettings(fileSystem, null, null)); // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(expected, installPath); }
public void InstallCommandOutPathTakesPrecedenceOverRepositoryPath() { // Arrange var fileSystem = GetFileSystemWithDefaultConfig(); var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider(), fileSystem, settings: Settings.LoadDefaultSettings(fileSystem, null, null)) { OutputDirectory = @"Bar\Baz" }; // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(@"Bar\Baz", installPath); }
public void InstallCommandUsesRepositoryPathFromConfigIfSpecified() { // Arrange var fileSystem = GetFileSystemWithDefaultConfig(); var installCommand = new TestInstallCommand(GetFactory(), GetSourceProvider(), fileSystem, settings: Settings.LoadDefaultSettings(fileSystem, null, null)); // Act string installPath = installCommand.ResolveInstallPath(); // Assert Assert.Equal(@"C:\This\Is\My\Install\Path", installPath); }