public void LoadOnlySharedConfiguration() { //Arrange Settings settings = new ConfigurationFactory() .Get(FileProvider.Configuration.SharedSettings.AsOneItemList()); //Act IEnumerable <IStep> steps = new StepFactory().Get(settings); //Assert Assert.AreEqual(steps.Count(), 0); }
public void GetStepsForConfigFileOnly() { //Arrange Settings settings = new ConfigurationFactory() .Get(FileProvider.Configuration.SettingsZipping.AsOneItemList()); //Act IEnumerable <IStep> steps = new StepFactory().Get(settings); //Assert Assert.AreEqual(3, steps.Count()); }
public void GetStepsWithReferences() { //Arrange FileInfo[] configFiles = new FileInfo[] { FileProvider.Configuration.SettingsZippingWithReferences, FileProvider.Configuration.SettingsZippingWithReferencesShared }; Settings settings = new ConfigurationFactory() .Get(configFiles); //Act IEnumerable <IStep> steps = new StepFactory().Get(settings).ToList(); //Assert Assert.AreEqual(3, steps.Count()); }
public void GetStepsFromMultipleSharedFilesAndMultipleConfigFiles() { //Arrange FileInfo[] configuration = new FileInfo[] { FileProvider.Configuration.SettingsZipping, FileProvider.Configuration.SettingsUnzipping, FileProvider.Configuration.SharedSettings, FileProvider.Configuration.SharedSettings2 }; Settings settings = new ConfigurationFactory() .Get(configuration); //Act IEnumerable <IStep> steps = new StepFactory().Get(settings); //Assert Assert.AreEqual(3, steps.Count()); }