Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/guiunit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/framework/GuiUnit/TestRunner.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/framework/GuiUnit/TestRunner.cs b/src/framework/GuiUnit/TestRunner.cs
index 9ffe523..8e8e2c5 100644
--- a/src/framework/GuiUnit/TestRunner.cs
+++ b/src/framework/GuiUnit/TestRunner.cs
@@ -41,6 +41,7 @@ namespace GuiUnit
static int ExitCode = 0;
static bool initialized = false;
static IMainLoopIntegration mainLoop;
+ public static event EventHandler BeforeShutdown;
static TestRunner ()
{
@@ -264,6 +265,8 @@ namespace GuiUnit
// Run the shutdown method on the main thread
var helper = new InvokerHelper {
Func = () => {
+ if (BeforeShutdown != null)
+ BeforeShutdown (null, EventArgs.Empty);
MainLoop.Shutdown ();
return null;
}