mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Additional test
This commit is contained in:
parent
09bdd45dc5
commit
ec2a3ef498
1 changed files with 3 additions and 1 deletions
|
|
@ -13,14 +13,16 @@ namespace ICD.Common.Utils.Tests
|
||||||
Assert.IsTrue(ThreadingUtils.Wait(() => true, 100));
|
Assert.IsTrue(ThreadingUtils.Wait(() => true, 100));
|
||||||
|
|
||||||
bool complete = false;
|
bool complete = false;
|
||||||
|
DateTime time = IcdEnvironment.GetLocalTime();
|
||||||
|
|
||||||
ThreadingUtils.SafeInvoke(() =>
|
ThreadingUtils.SafeInvoke(() =>
|
||||||
{
|
{
|
||||||
ThreadingUtils.Sleep(50);
|
ThreadingUtils.Sleep(100);
|
||||||
complete = true;
|
complete = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
Assert.IsTrue(ThreadingUtils.Wait(() => complete, 200));
|
Assert.IsTrue(ThreadingUtils.Wait(() => complete, 200));
|
||||||
|
Assert.AreEqual(100, (IcdEnvironment.GetLocalTime() - time).TotalMilliseconds, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue