Last active
April 27, 2020 18:16
-
-
Save mattheweshleman/5df90f4f48994c61d43453ce5ce2d1d7 to your computer and use it in GitHub Desktop.
GiveProcessingTime unit test helper method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void GiveProcessingTime() | |
{ | |
//use our unit testing backdoor to service | |
//the active object's internal queue. This avoids threading issues | |
//with unit tests, creating 100% predictable unit tests. | |
while (true == mUnderTest->ProcessOneEvent(ProcessOption::UNIT_TEST)) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment