Beispiel #1
0
        public void TestFieldOf()
        {
            var obj = new DummyType();

            var actualField = typeof(DummyType).GetField("String");
            var field       = ReflectionUtility.FieldOf(() => obj.String);

            Assert.IsNotNull(field);
            Assert.AreEqual(actualField, field);
        }