Synodic-Software / Soul-Engine

Physically based renderer and simulation engine for real-time applications.
GNU General Public License v3.0
42 stars 24 forks source link

Event Manager Unit Tests #120

Closed Behemyth closed 6 years ago

Behemyth commented 7 years ago

Similar to the Setting's tests that were completed, implement unit test for the Event Manager. Look in Soul Core.cpp and RenderWidget.cpp for an instance where the manager is used. The function Listen takes in a function pointer, lambda, or member function and waits for an Emit call with the same tag before executing. To start off, make tests for all three function types. Assert that each function did not execute prior to the emit and assert that it did execute after the emit.