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.
Similar to the Setting's tests that were completed, implement unit test for the Event Manager. Look in
Soul Core.cpp
andRenderWidget.cpp
for an instance where the manager is used. The functionListen
takes in a function pointer, lambda, or member function and waits for anEmit
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.