public void TestExceptionOnInvalidProperty()
        {
            var obj = new IntHolder();
            PropertyInfo property = obj.GetType().GetProperties().Where(pi => pi.Name == "NotConvertible").First();

            Assert.That(() => underTest.GetHtmlInfo(property)
                , Throws.InstanceOf<ArgumentException>());
        }
        public void TestPropertyConversionName()
        {
            var obj = new IntHolder();
            PropertyInfo property = obj.GetType().GetProperties().Where(pi => pi.Name == "I").First();

            HtmlPropertyInfo htmlProperty = underTest.GetHtmlInfo(property);

            Assert.That(htmlProperty.Name , Is.EqualTo(property.Name), "Wrong name for property");
        }
        public void TestIntPropertyConversion()
        {
            var obj = new IntHolder();
            PropertyInfo property = obj.GetType().GetProperties().Where(pi => pi.Name == "I").First();

            HtmlPropertyInfo htmlProperty = underTest.GetHtmlInfo(property);

            Assert.That(htmlProperty.Data, Is.EqualTo(HtmlPropertyInfo.DataType.Number), "Wrong datatype for property");
        }