ApplicationSettingsTests.TypeConverterTests.When_Converting_Nullable_Type.Then_should_convert_empty_string_to_nullable_int_with_null_value C# (CSharp) Method

Then_should_convert_empty_string_to_nullable_int_with_null_value() private method

        public void Then_should_convert_empty_string_to_nullable_int_with_null_value()
        {
            var value = TypeConverter.Convert<int?>(string.Empty);

            Assert.IsFalse(value.HasValue);
        }