Skip to content

Instantly share code, notes, and snippets.

@mattheweshleman
Last active April 27, 2020 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattheweshleman/5df90f4f48994c61d43453ce5ce2d1d7 to your computer and use it in GitHub Desktop.
Save mattheweshleman/5df90f4f48994c61d43453ce5ce2d1d7 to your computer and use it in GitHub Desktop.
GiveProcessingTime unit test helper method
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