ApplicationSettingsTests.When_Getting_Mandatory_String_Value.And_setting_does_not_exist_exception_is_thrown C# (CSharp) Method

And_setting_does_not_exist_exception_is_thrown() private method

private And_setting_does_not_exist_exception_is_thrown ( ) : void
return void
        public void And_setting_does_not_exist_exception_is_thrown()
        {
            var settings = new AppSettings(SimpleConfig.AbsolutePathToConfigFile);

            Assert.Throws<AppSettingException>(() => settings.GetValue("NonExistingSetting"));
        }