annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
249
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
1 using System;
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
2 using System.Threading;
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
3 using Xunit;
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
4
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
5 namespace Implab.Test
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
6 {
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
7 public class UnitTest1
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
8 {
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
9 [Fact]
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
10 public void Test1()
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
11 {
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
12 using(var cts = new CancellationTokenSource(1000)) {
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
13 PromiseHelper.Sleep(10000, cts.Token).Join();
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
14 }
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
15 }
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
16 }
d82909310094 Implab.Test moved to xunit
cin
parents:
diff changeset
17 }