Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Feb 23, 2024
1 parent 9141b8b commit 0660837
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/iis/Elastic.Apm.FullFramework.Tests/AppSettingsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ private static void UpdateAppSettings(Dictionary<ConfigurationOption, string> va
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var appSettings = (AppSettingsSection)config.GetSection("appSettings");
appSettings.Settings.Clear();
foreach (var v in values) appSettings.Settings.Add(v.Key.ToConfigKey(), v.Value);
foreach (var v in values)
appSettings.Settings.Add(v.Key.ToConfigKey(), v.Value);
config.Save();
ConfigurationManager.RefreshSection("appSettings");
}
Expand Down Expand Up @@ -74,9 +75,10 @@ public void CustomFlushIntervalTest()
public void CreateConfigurationReaderThroughApSettings()
{
var logger = new ConsoleLogger(LogLevel.Information);
var config = new Dictionary<ConfigurationOption, string>();

config.Add(FullFrameworkConfigurationReaderType, ConfigType);
var config = new Dictionary<ConfigurationOption, string>
{
{ FullFrameworkConfigurationReaderType, ConfigType }
};

UpdateAppSettings(config);

Expand Down

0 comments on commit 0660837

Please sign in to comment.