Example #1
0
        public void CheckHasPropertyWithGivenClassAndPropertyNameWithTypeString(string propertyName, bool expectedOutCome, Type expectedType)
        {
            //Arrange

            //Act
            Type t = PropertyUtils.GetPropertyTypeFromClass <Person>(propertyName);


            if (expectedOutCome)
            {
                Assert.That(t, Is.EqualTo(expectedType));
            }
            else
            {
                Assert.That(t, Is.Not.EqualTo(expectedType));
            }
        }