From 873e02b175389adc5b8bb014d5815385f9d381a5 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Mon, 2 Oct 2017 09:46:17 -0400 Subject: [PATCH] Slighly better SafeInvoke tests --- ICD.Common.Utils.Tests/ThreadingUtilsTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs b/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs index 9caa5f3..40d1722 100644 --- a/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs +++ b/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs @@ -20,7 +20,7 @@ namespace ICD.Common.Utils.Tests public void SafeInvokeTest() { bool result = false; - ThreadingUtils.SafeInvoke(() => result = true); + ThreadingUtils.SafeInvoke(() => { ThreadingUtils.Sleep(100); result = true; }); Assert.IsFalse(result); ThreadingUtils.Sleep(1000); @@ -31,7 +31,7 @@ namespace ICD.Common.Utils.Tests public void SafeInvokeParamTest() { bool result = false; - ThreadingUtils.SafeInvoke(p => result = p, true); + ThreadingUtils.SafeInvoke(p => { ThreadingUtils.Sleep(100); result = p; }, true); Assert.IsFalse(result); ThreadingUtils.Sleep(1000);