public void GetExcludedTypes_Returns_Trimmed_Name() { var stagingConfigurationSettingsOptions = OptionsFactory.CreateOptions <StagingConfigurationSettings>(AppConfigFileName.Untrimmed); var appSettingsRepository = new AppSettingsRepository(stagingConfigurationSettingsOptions); var excludedTypes = appSettingsRepository.GetExcludedTypes(); Assert.AreEqual("cms.form", excludedTypes.FirstOrDefault()); }
public void GetExcludedTypes_Returns_Expected_List_Count(string configFileName, int expectedCount) { var stagingConfigurationSettingsOptions = OptionsFactory.CreateOptions <StagingConfigurationSettings>(configFileName); var appSettingsRepository = new AppSettingsRepository(stagingConfigurationSettingsOptions); var excludedTypes = appSettingsRepository.GetExcludedTypes(); Assert.AreEqual(expectedCount, excludedTypes.Count); }