public InjectableMethod(MethodInfo method, IInjectableParameter[] parameters) : base(method) { this.parameters = parameters; invoker = method.CreateWrapper(); arguments = new object[parameters.Length]; }
public override void TearDown() { base.TearDown(); dummyClass = null; dummyStruct = null; classMethod1Wrapper = null; classMethod2Wrapper = null; classMethod3Wrapper = null; classMethod4Wrapper = null; classMethod5Wrapper = null; classMethod6Wrapper = null; classMethod7Wrapper = null; classMethod8Wrapper = null; structMethod1Wrapper = null; structMethod2Wrapper = null; structMethod3Wrapper = null; structMethod4Wrapper = null; structMethod5Wrapper = null; structMethod6Wrapper = null; structMethod7Wrapper = null; structMethod8Wrapper = null; }
public override void Setup() { base.Setup(); dummyClass = new DummyClass(); dummyStruct = new DummyStruct(); classMethod1Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method1")); classMethod2Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method2")); classMethod3Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method3")); classMethod4Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method4")); classMethod5Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method5")); classMethod6Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method6")); classMethod7Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method7")); classMethod8Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyClass).GetMethod("Method8")); structMethod1Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method1")); structMethod2Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method2")); structMethod3Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method3")); structMethod4Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method4")); structMethod5Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method5")); structMethod6Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method6")); structMethod7Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method7")); structMethod8Wrapper = ReflectionUtility.CreateMethodWrapper(typeof(DummyStruct).GetMethod("Method8")); }