public void CanSaveConfigurationSectionToFile()
        {
            SystemConfigurationSource source = new SystemConfigurationSource();
            source.Save(file, InstrumentationConfigurationSection.SectionName, CreateInstrumentationSection());

            ValidateConfiguration(file);
        }
 public void SaveConfigurationSectionWithNoConfigurationFileThrows()
 {
     SystemConfigurationSource source = new SystemConfigurationSource();
     source.Save("foo.exe.cofig", InstrumentationConfigurationSection.SectionName, CreateInstrumentationSection());
 }
 public void TryToSaveWithNullOrEmptySectionNameThrows()
 {
     SystemConfigurationSource source = new SystemConfigurationSource();
     source.Save(file, null, CreateInstrumentationSection());
 }
 public void TryToSaveWithNullSectionThrows()
 {
     SystemConfigurationSource source = new SystemConfigurationSource();
     source.Save(file, InstrumentationConfigurationSection.SectionName, null);
 }
 public void TryToSaveWithNullOrEmptyFileNameThrows()
 {
     SystemConfigurationSource source = new SystemConfigurationSource();
     source.Save((string)null, InstrumentationConfigurationSection.SectionName, CreateInstrumentationSection());
 }