public void CsharpSanityTest() { EventBus bus = new EventBus(); EventBase eventBase = new CustomEvent1(); int i = 0; bus.Subscribe <EventBase>(e => { i = 1; }); bus.Publish(eventBase); Assert.AreEqual(1, i); }
private void ControlCanvas_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { CustomEvent1?.Invoke(sender, new CustomEvent1Args(new Point(13, 37))); }