Esempio n. 1
0
        public void GetMemberValue_returns_correct_value_for_reference_type_property()
        {
            var testDouble = new GetMemberValueTestDouble()
            {
                StringProperty = "abc"
            };

            var r = testDouble.GetMemberValue(o => o.StringProperty);

            Assert.AreEqual(testDouble.StringProperty, r);
        }
Esempio n. 2
0
        public void GetMemberValue_returns_correct_value_for_value_type_property()
        {
            var testDouble = new GetMemberValueTestDouble()
            {
                IntProperty = 1
            };

            var r = testDouble.GetMemberValue(o => o.IntProperty);

            Assert.AreEqual(testDouble.IntProperty, r);
        }