ApplicationSettingsTests.When_Getting_Mandatory_Value.And_value_cannot_be_converted_exception_is_thrown C# (CSharp) Method

And_value_cannot_be_converted_exception_is_thrown() private method

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

            Assert.Throws<AppSettingException>(() => settings.GetValue<decimal>(SimpleConfig.NonEmptyStringValue));
        }