public void Listener_WasNotCalled_WhenNotInvoked() { // Arrange var uEventDispatcher = new UEventDispatcher(); bool wasCalled = false; // Act uEventDispatcher.AddEventListener <TestUEvent01>((IUEventData uEventData) => { wasCalled = true; }); // Assert Assert.That(wasCalled, Is.False); }
public void AddEventListener <T>(UnityAction <IUEventData> unityAction) where T : IUEvent { _eventDispatcher.AddEventListener <T>(unityAction); }