Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 //  Unity Methods   -------------------------------
 protected void Awake()
 {
     _eventDispatcher = new UEventDispatcher();
 }