public void SetValueNullableGuidThatIsNullTest()
        {
            PropertyInfoTestObject testObject = new PropertyInfoTestObject();

            var guidProperty = typeof(PropertyInfoTestObject).GetProperty("NullableGuid");
            guidProperty.SetValue(testObject, null);

            Assert.AreEqual(null, testObject.NullableGuid);
        }
        public void SetValueIntegerTest()
        {
            int value = 100;
            PropertyInfoTestObject testObject = new PropertyInfoTestObject();

            var guidProperty = typeof(PropertyInfoTestObject).GetProperty("Integer");
            guidProperty.SetValue(testObject, value.ToString());

            Assert.AreEqual(value, testObject.Integer);
        }
        public void SetValueNullableGuidTest()
        {
            Guid guid = Guid.NewGuid();
            PropertyInfoTestObject testObject = new PropertyInfoTestObject();

            var guidProperty = typeof(PropertyInfoTestObject).GetProperty("NullableGuid");
            guidProperty.SetValue(testObject, guid.ToSafeString());

            Assert.AreEqual(guid, testObject.NullableGuid);
        }
        public void SetValueEnumTest()
        {
            PropertyInfoEnum value = PropertyInfoEnum.Value2;
            PropertyInfoTestObject testObject = new PropertyInfoTestObject();

            var guidProperty = typeof(PropertyInfoTestObject).GetProperty("Enum");
            guidProperty.SetValue(testObject, value.ToAttributeValue());

            Assert.AreEqual(value, testObject.Enum);
        }
        public void SetValueStringTest()
        {
            string value = "SomeString";
            PropertyInfoTestObject testObject = new PropertyInfoTestObject();

            var guidProperty = typeof(PropertyInfoTestObject).GetProperty("String");
            guidProperty.SetValue(testObject, value);

            Assert.AreEqual(value, testObject.String);
        }