view 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 source

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