private void ModelTest(CallToModel callToModel) { // The delegate will make the sync call into the model callToModel(); // Wait for the execution to finish // The async callback will assert if there is a failure EnqueueConditional(() => callback.finished); // We made it this far in the queue without an error, pass! EnqueueTestComplete(); }