public void EventWithOneParameterAndNoReturnType_DecoratedWithOnFunctionInterceptionAspectWithOneAReturnTypeThatIsTheSameUnderlyingTypeAsTheParameterOfTheEvent_ThrowsAspectAnnotationException() { var Event = GetEvent("EventWithIntParamAndNoReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestEventFunctionInterceptionAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventWithoutReturnType_DecoratedWithEventActionInterceptionAspectWithNewEventOfOnInvokeThatHasAReturnType_ThrowsAspectTypeMismatchException() { var Event = GetEvent("EventWithoutParams"); var aspect = new EventInterceptionAspectAttribute(typeof(TestInterceptionAspectWithNewEventOfOnInvokeThatHasAReturnType)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventWithoutReturn_DecoratedWithOnActionBoundaryAspectWithNewEventOfOnAddHandlerThatHasMoreThenOneArgument_ThrowsAspectTypeMismatchException() { var Event = GetEvent("EventWithoutParams"); var aspect = new EventInterceptionAspectAttribute(typeof(TestEventInterceptionAspectWithNewEventOfOnAddHandlerThatHasMoreThenOneArgument)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void ParameterslessEventWithReturnType_DecoratedWithFunctionAspectThatHasAtLeastOneParameter_ThrowsAspectTypeMismatchException() { var Event = GetEvent("EventWithoutParamsWithBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void Event_DecoratedWithFunctionAspectThatHasNoAdvices_ThrowsAdviceNotFoundException() { var Event = GetEvent("EventWithStringParamAndBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(NoAdviceAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventWithOneParemeterAndReturnType_DecoratedWithEventFunctionAspectThatHasDifferentSetOfParameters_ThrowsAspectTypeMismatchException() { var Event = GetEvent("EventWithStringParamAndBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestAspect4)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void ParameterslessEventAndNoReturnType_DecoratedWithFunctionAspect_ThrowsAspectAnnotationException() { var Event = GetEvent("EventWithoutParams"); var aspect = new EventInterceptionAspectAttribute(typeof(TestAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventWithAReturnType_DecoratedWithEventActionAspect_ThrowsAspectTypeMismatchException() { var Event = GetEvent("EventWithStringParamAndBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(EventAction)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventWithoutReturnType_DecoratedWithEventInterceptionAspectAttribute_ThrowsAspectAnnotationException() { var Event = GetEvent("EventWithStringParamAndVoidReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventInterceptionAspectAttribute_GivenAnInterceptionAspectTypeAsAnArgument_ThrowsAspectAnnotationException() { var Event = GetEvent("EventWithStringParamAndBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestInterceptionAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void ParameterlessEventWithReturnType_DecoratedWithMatchedFunctionAspectsWithoutParametersAndReturnType_ReturnsNoErrorFromValidation() { var Event = GetEvent("EventWithoutParamsWithBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestAspect2)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }
public void EventWithStringParamAndBoolReturnType_DecoratedWithMatchedEventInterceptionAspectAttribute_ReturnsNoErrorFromValidation() { var Event = GetEvent("EventWithStringParamAndBoolReturnType"); var aspect = new EventInterceptionAspectAttribute(typeof(TestAspect)); AspectTypeValidator.ValidateEventAspect(aspect, Event); }