From 7c0f7739e2605248f301b3a726a08c07ed13ccdf Mon Sep 17 00:00:00 2001 From: Oleksandr Hulyi Date: Sun, 16 Jun 2019 21:44:36 +0300 Subject: [PATCH] more tests --- .../General/PropagationControlTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/AspectInjector.Tests.Runtime/General/PropagationControlTests.cs b/tests/AspectInjector.Tests.Runtime/General/PropagationControlTests.cs index a11239d2..54bddbb6 100644 --- a/tests/AspectInjector.Tests.Runtime/General/PropagationControlTests.cs +++ b/tests/AspectInjector.Tests.Runtime/General/PropagationControlTests.cs @@ -18,6 +18,7 @@ public void Propagation_Options_Correctly_Processed() { _testTarget.Method(); _testTarget.Event += (s, e) => { }; + _testTarget.Ev2ent += (s, e) => { }; _testTarget.Property = ""; } @@ -27,11 +28,12 @@ public void Propagation_Options_Correctly_Processed() public class TestClass { public event EventHandler Event; + public event EventHandler Ev2ent; public string Property { get; set; } public void Method() { } } - [Injection(typeof(SuccessAspect), Propagation = PropagateTo.Events)] + [Injection(typeof(SuccessAspect), Propagation = PropagateTo.Events, PropagationFilter = "Event")] public class EventTrigger : Attribute { } [Injection(typeof(SuccessAspect), Propagation = PropagateTo.Properties)]