Example #1
0
        public void GetObjectPropertyTest()
        {
            TestClass theObject = new TestClass {
                PropertyInt = 7, PropertyString = "Test"
            };
            PropertyInfo expected = theObject.GetType().GetProperty("PropertyString");
            PropertyInfo actual   = ObjectLookupHelper.GetObjectProperty(theObject, "PropertyString");

            Assert.AreEqual(expected, actual);
        }