public void HaveTestEnvironmentWhenTestEnvironmentIsAdded() { var source = new TestSettingSource(); var envs = new EnvironmentSettings(new SettingsManager(new SecureSettingsManager(source))); var env = new EnvironmentSetting("test", "test", "test", "test"); envs.AddEnvironment(env); Assert.IsTrue(envs.Any(e => e.Name == env.Name)); }
public void BeAbleToRemoveTestEnvironmentAfterTestEnvironmentIsAdded() { var source = new TestSettingSource(); var envs = new EnvironmentSettings(new SettingsManager(new SecureSettingsManager(source))); var env = new EnvironmentSetting("test", "test", "test", "test"); envs.AddEnvironment(env); envs.RemoveEnvironment(env); Assert.IsFalse(envs.Any(e => e.Name == env.Name)); }