diff Implab.Test/UnitTest1.cs @ 249:d82909310094 v3

Implab.Test moved to xunit Complete set of PromiseHelpers (Then, Catch, Finally) Removed obsolete types ICancellable, ICancellationToken
author cin
date Wed, 31 Jan 2018 11:28:38 +0300
parents
children 7c7e9ad6fe4a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Implab.Test/UnitTest1.cs	Wed Jan 31 11:28:38 2018 +0300
@@ -0,0 +1,17 @@
+using System;
+using System.Threading;
+using Xunit;
+
+namespace Implab.Test
+{
+    public class UnitTest1
+    {
+        [Fact]
+        public void Test1()
+        {
+            using(var cts = new CancellationTokenSource(1000)) {
+                PromiseHelper.Sleep(10000, cts.Token).Join();
+            }
+        }
+    }
+}