示例#1
0
        public override void Setup()
        {
            base.Setup();

            dummyClass = new DummyClass {
                Value = 1, Reference = "2"
            };
            dummyStruct = new DummyStruct {
                Value = 3, Reference = "4"
            };
            classValueWrapper      = ReflectionUtility.CreateFieldWrapper(typeof(DummyClass).GetField("Value"));
            classReferenceWrapper  = ReflectionUtility.CreateFieldWrapper(typeof(DummyClass).GetField("Reference"));
            structValueWrapper     = ReflectionUtility.CreateFieldWrapper(typeof(DummyStruct).GetField("Value"));
            structReferenceWrapper = ReflectionUtility.CreateFieldWrapper(typeof(DummyStruct).GetField("Reference"));
        }