Esempio n. 1
0
 public void TearDown()
 {
     _basicSettings = null;
     _advancedSettings = null;
     _invalidSettings = null;
     _tgSettings = null;
     _visaSettings = null;
     _serverSettings = null;
     _multipleSettings = null;
     _inheritanceSettings = null;
 }
 public void SettingsFileReader_ReadSettings_FromXmlSettingsFile_ReturnsExpectedResult()
 {
     SettingsFileReader reader = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.Settings.xml"));
     Assert.AreEqual(6, reader.ReadSettings().Count());
 }
Esempio n. 3
0
 public void SetUp()
 {
     _basicSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.Settings.txt"));
     _advancedSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.AdvancedSettings.txt"));
     _advancedXmlSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.AdvancedSettings.xml"));
     _multipleSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.MultipleSettings.txt"));
     _invalidSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.InvalidSettings.txt"));
     _tgSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.TGSettings.txt"));
     _visaSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.VisaSettings.txt"));
     _serverSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.Servers.txt"));
     _inheritanceSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.SettingsWithInheritance.txt"));
     _inheritanceXmlSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.SettingsWithInheritance.xml"));
     _repeatSectionSettings = new SettingsFileReader(Helpers.ResourceHelpers.GetStreamFromResource("Tests.ExampleSettingsFiles.RepeatSectionSettings.txt"));
 }