ApplicationSettingsTests.When_Getting_Mandatory_String_Value.And_file_does_not_exist_Then_exception_is_thrown C# (CSharp) Method

And_file_does_not_exist_Then_exception_is_thrown() private method

private And_file_does_not_exist_Then_exception_is_thrown ( ) : void
return void
        public void And_file_does_not_exist_Then_exception_is_thrown()
        {
            var settings = new AppSettings("NonExistingConfig.config", FileOption.None);

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