Slighly better SafeInvoke tests

This commit is contained in:
Chris Cameron
2017-10-02 09:46:17 -04:00
parent e5ae4298ca
commit 873e02b175

View File

@@ -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);