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(); } } } }