public InvocationTest_FaultyInterceptorImplementation() { this.targetInvocation = new Mock<ITargetInvocation>(); this.testee = new Invocation( this.targetInvocation.Object, typeof(IFakeTarget).GetMethod("Foo"), new object[0], new IDynamicInterceptor[] { new FaultyInterceptor() }); }
public InvocationTest() { this.targetInvocation = new Mock<ITargetInvocation>(); this.decoratedMethod = typeof(IFakeTarget).GetMethod("Foo"); this.interceptor1 = new Mock<IDynamicInterceptor>(); this.interceptor2 = new Mock<IDynamicInterceptor>(); this.testee = new Invocation( this.targetInvocation.Object, this.decoratedMethod, this.arguments, new[] { this.interceptor1.Object, this.interceptor2.Object }); }