public void UserRoaming_settings_should_return_expected() { IBuildServerSettings buildServerSettings = _userRoaming.GetBuildServerSettings(); // Explicitly set buildServerSettings.ServerName.Should().Be("Azure DevOps and Team Foundation Server (since TFS2015)"); buildServerSettings.IntegrationEnabled.Should().BeTrue(); buildServerSettings.ShowBuildResultPage.Should().BeNull(); // Explicitly set ISettingsSource settingsSource = buildServerSettings.SettingsSource; settingsSource.Should().BeOfType <SettingsPath>(); ((SettingsPath)settingsSource).PathFor("").Should().Be("BuildServer.Azure DevOps and Team Foundation Server (since TFS2015)."); }
public void RepoDistributed_settings_should_return_expected() { IBuildServerSettings buildServerSettings = _repoLocal.GetBuildServerSettings(); // No explicit settings, inheriting from the repo local buildServerSettings.ServerName.Should().Be("AppVeyor"); buildServerSettings.IntegrationEnabled.Should().BeTrue(); // Explicitly set buildServerSettings.ShowBuildResultPage.Should().BeFalse(); // No explicit settings, inheriting from the repo local ISettingsSource settingsSource = buildServerSettings.SettingsSource; settingsSource.Should().BeOfType <SettingsPath>(); ((SettingsPath)settingsSource).PathFor("").Should().Be("BuildServer.AppVeyor."); }