public void FunctionWith1RefArgument_AnnotatedWithOnMethodBoundaryAspectThatRaisesAnExceptionInMethodInvocationWithContinueFlowBehaviour_OmitsTheOnSuccessAdvice() { var instance = container.Resolve <IFunctionWith1RefArgumentComposite>(); var result = instance.OnMethodBoundaryAspectThatRaiseAnExceptionInMethodImplDecoratedWithContinueFlowBehaviourAspect(ref i); var joinPoints = new WithExceptionFlowBehaviourContinueOnMethodBoundaryAspectOrderedJoinPoints(); var calculated = joinPoints.Calculate(); Assert.AreEqual(i, calculated); Assert.AreEqual(result, joinPoints.ToString()); }
public void FunctionWith2Arguments_AnnotatedWithOnMethodBoundaryAspectThatRaisesAnExceptionInMethodInvocationWithContinueFlowBehaviour_OmitsTheOnSuccessAdvice() { var instance = container.Resolve <IFunctionWith2ArgumentsComposite>(); var first = new List <AspectJoinPoints>(); var second = new List <AspectJoinPoints>(); var joinPoints = new WithExceptionFlowBehaviourContinueOnMethodBoundaryAspectOrderedJoinPoints(); var result = instance.OnMethodBoundaryAspectThatRaiseAnExceptionInMethodImplDecoratedWithContinueFlowBehaviourAspect(first, second); CollectionAssert.AreEqual(first, joinPoints); CollectionAssert.AreEqual(second, joinPoints); Assert.AreEqual(result, joinPoints.ToString()); }