Ejemplo n.º 1
0
        public override void establish_context()
        {
            property = ReflectionHelper.GetAccessor(GetPropertyExpression());
            target = new PropertyEntity();

            sut = new Property<PropertyEntity, string>(property, "expected");
        }
Ejemplo n.º 2
0
        public override void establish_context()
        {
            property = ReflectionHelper.GetAccessor(GetPropertyExpression());
            target   = new PropertyEntity();

            sut = new Property <PropertyEntity, string>(property, "expected");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }