public void AppSettingsLoader_Load_ExceptionIfRequiredSettingDoesNotExist() { var mockSettingsLoader = new SettingLoaderMock(); var settings = new SettingsOptional(); AppSettingsLoader.Load(mockSettingsLoader, ref settings); }
public void AppSettingsLoader_Load_ExceptionIfRequiredSettingDoesNotExist() { var mockSettingsLoader = new SettingLoaderMock(); var settings = new SettingsOptional(); AppSettingsLoader.Load(mockSettingsLoader, ref settings); }
public void AppSettingsLoader_Load_NoExceptionIfHasOptionalSetting() { var mockSettingsLoader = new SettingLoaderMock(); // Set the required setting to avoid the exception, but don't set the optional setting mockSettingsLoader.Settings.Add("RequiredSetting", "Exists"); var settings = new SettingsOptional(); AppSettingsLoader.Load(mockSettingsLoader, ref settings); }
public void AppSettingsLoader_Load_NoExceptionIfHasOptionalSetting() { var mockSettingsLoader = new SettingLoaderMock(); // Set the required setting to avoid the exception, but don't set the optional setting mockSettingsLoader.Settings.Add("RequiredSetting", "Exists"); var settings = new SettingsOptional(); AppSettingsLoader.Load(mockSettingsLoader, ref settings); }