* Delete duplicate test

StartTask was exactly the same as CreateTask 50 lines above.

* Restore poorly merged test case
This commit is contained in:
Fraser Waters 2019-10-31 15:30:00 +00:00 коммит произвёл Phillip Carter
Родитель 359b9c1c5e
Коммит a61b6f1ab6
1 изменённых файлов: 0 добавлений и 14 удалений

Просмотреть файл

@ -199,20 +199,6 @@ type AsyncType() =
| _ -> reraise()
Assert.IsTrue (tcs.Task.IsCompleted, "Task is not completed")
[<Test>]
member this.StartTask () =
let s = "Hello tasks!"
let a = async { return s }
#if !NET46
let t =
#else
use t =
#endif
Async.StartAsTask a
this.WaitASec t
Assert.IsTrue (t.IsCompleted)
Assert.AreEqual(s, t.Result)
[<Test>]
member this.RunSynchronouslyCancellationWithDelayedResult () =
let cts = new CancellationTokenSource()