public void AddEvent() { service.AddConnection(); service.AddOn <Message>(OnMessageEvent); Assert.AreEqual(Connections["Varunastra"].Values.FirstOrDefault().NotifyMessage.GetInvocationList().Length, 1); service.AddOn <Friendship>(OnRequestEvent); Assert.AreEqual(Connections["Varunastra"].Values.FirstOrDefault().NotifyRequest.GetInvocationList().Length, 1); }