ApplicationSettingsTests.TypeConverterTests.When_Converting_Enum.Then_should_convert_empty_string_to_nullable_enum_without_value C# (CSharp) Method

Then_should_convert_empty_string_to_nullable_enum_without_value() private method

        public void Then_should_convert_empty_string_to_nullable_enum_without_value()
        {
            var value = TypeConverter.Convert<SimpleEnum?>("");

            Assert.IsFalse(value.HasValue);
        }