public void EventPocoPropertyTest() { var tPoco = new PocoEvent(); var tActsLike = tPoco.ActLike <IEvent>(); var tSet = false; tActsLike.Event += (obj, args) => tSet = true; tActsLike.OnEvent(null, null); Assert.AreEqual(true, tSet); }
public void EventPocoPropertyTest2() { var tPoco = new PocoEvent(); var tActsLike = tPoco.ActLike <IEvent>(); var tSet = false; EventHandler <EventArgs> tActsLikeOnEvent = (obj, args) => tSet = true; tActsLike.Event += tActsLikeOnEvent; tActsLike.Event -= tActsLikeOnEvent; tActsLike.OnEvent(null, null); Assert.AreEqual(false, tSet); }
public void EventPocoPropertyTest2() { var tPoco = new PocoEvent(); var tActsLike = tPoco.ActLike<IEvent>(); var tSet = false; EventHandler<EventArgs> tActsLikeOnEvent = (obj, args) => tSet = true; tActsLike.Event += tActsLikeOnEvent; tActsLike.Event -= tActsLikeOnEvent; tActsLike.OnEvent(null, null); Assert.AreEqual(false, tSet); }
public void EventPocoPropertyTest() { var tPoco = new PocoEvent(); var tActsLike = tPoco.ActLike<IEvent>(); var tSet = false; tActsLike.Event += (obj, args) => tSet = true; tActsLike.OnEvent(null, null); Assert.AreEqual(true, tSet); }