コード例 #1
0
        public override void establish_context()
        {
            property = ReflectionHelper.GetAccessor(GetPropertyExpression());
            target = new PropertyEntity();

            sut = new Property<PropertyEntity, string>(property, "expected");
        }
コード例 #2
0
        public override void establish_context()
        {
            property = ReflectionHelper.GetAccessor(GetPropertyExpression());
            target   = new PropertyEntity();

            sut = new Property <PropertyEntity, string>(property, "expected");
        }
コード例 #3
0
        public override void establish_context()
        {
            property = ReflectionHelper.GetAccessor((Expression <Func <PropertyEntity, string> >)(x => x.GetterAndSetter));
            target   = new PropertyEntity();

            sut = new Property <PropertyEntity, string>(property, "expected");
        }
コード例 #4
0
        public override void establish_context()
        {
            property = ReflectionHelper.GetAccessor ((Expression<Func<PropertyEntity, string>>)(x => x.GetterAndSetter));
            target = new PropertyEntity();

            sut = new Property<PropertyEntity, string>(property, "expected");
        }