ApplicationSettingsTests.When_Getting_Mandatory_String_Value.And_AppSetting_section_does_not_exist_exception_is_thrown C# (CSharp) Method

And_AppSetting_section_does_not_exist_exception_is_thrown() private method

        public void And_AppSetting_section_does_not_exist_exception_is_thrown()
        {
            var settings = new AppSettings(NoAppSettingsConfig.AbsolutePathToConfigFile);

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