public override void SetUp() 
		{
			_accessor = PropertyAccessorFactory.GetPropertyAccessor("field.camelcase-underscore");
			_getter = _accessor.GetGetter( typeof(FieldClass), "CamelUnderscoreFoo" );
			_setter = _accessor.GetSetter( typeof(FieldClass), "CamelUnderscoreFoo" );
			_instance = new FieldClass();
			_instance.InitCamelUnderscoreFoo( 0 );
		}
		public override void SetUp()
		{
			_accessor = PropertyAccessorFactory.GetPropertyAccessor("field.lowercase");
			_getter = _accessor.GetGetter(typeof(FieldClass), "LowerFoo");
			_setter = _accessor.GetSetter(typeof(FieldClass), "LowerFoo");
			_instance = new FieldClass();
			_instance.InitLowerFoo(0);
		}
		public override void SetUp()
		{
			_accessor = PropertyAccessorFactory.GetPropertyAccessor("field.pascalcase-m-underscore");
			_getter = _accessor.GetGetter(typeof(FieldClass), "Blah");
			_setter = _accessor.GetSetter(typeof(FieldClass), "Blah");
			_instance = new FieldClass();
			_instance.InitBlah(0);
		}
		public virtual void SetUp()
		{
			_accessor = PropertyAccessorFactory.GetPropertyAccessor("field");
			_getter = _accessor.GetGetter(typeof(FieldClass), "Id");
			_setter = _accessor.GetSetter(typeof(FieldClass), "Id");
			_instance = new FieldClass();
			_instance.InitId(0);
		}
		public override void SetUp()
		{
			_expectedCamelBazGetterCalled = true;
			_accessor = PropertyAccessorFactory.GetPropertyAccessor("nosetter.camelcase");
			_getter = _accessor.GetGetter( typeof(FieldClass), "CamelBaz" );
			_setter = _accessor.GetSetter( typeof(FieldClass), "CamelBaz" );
			_instance = new FieldClass();
			_instance.InitCamelBaz( 0 );
		}
 public override void SetUp()
 {
     _expectedCamelBazGetterCalled = true;
     _accessor = PropertyAccessorFactory.GetPropertyAccessor("nosetter.camelcase");
     _getter   = _accessor.GetGetter(typeof(FieldClass), "CamelBaz");
     _setter   = _accessor.GetSetter(typeof(FieldClass), "CamelBaz");
     _instance = new FieldClass();
     _instance.InitCamelBaz(0);
 }
		public override void SetUp()
		{
			_expectedLowerUnderscoreFooGetterCalled = true;

			_accessor = PropertyAccessorFactory.GetPropertyAccessor("nosetter.lowercase-underscore");
			_getter = _accessor.GetGetter(typeof(FieldClass), "LowerUnderscoreFoo");
			_setter = _accessor.GetSetter(typeof(FieldClass), "LowerUnderscoreFoo");
			_instance = new FieldClass();
			_instance.InitLowerUnderscoreFoo(0);
		}
예제 #8
0
        public override void SetUp()
        {
            _expectedLowerFooGetterCalled = true;

            _accessor = PropertyAccessorFactory.GetPropertyAccessor("nosetter.lowercase");
            _getter   = _accessor.GetGetter(typeof(FieldClass), "LowerFoo");
            _setter   = _accessor.GetSetter(typeof(FieldClass), "LowerFoo");
            _instance = new FieldClass();
            _instance.InitLowerFoo(0);
        }
        public override void SetUp()
        {
            _expectedPascalUnderscoreFooGetterCalled = true;

            _accessor = PropertyAccessorFactory.GetPropertyAccessor("nosetter.pascalcase-underscore");
            _getter   = _accessor.GetGetter(typeof(FieldClass), "PascalUnderscoreFoo");
            _setter   = _accessor.GetSetter(typeof(FieldClass), "PascalUnderscoreFoo");
            _instance = new FieldClass();
            _instance.InitPascalUnderscoreFoo(0);
        }