提交 a61b6f1a 编写于 作者: F Fraser Waters 提交者: Phillip Carter

Delete duplicate test (#7412)

* Delete duplicate test

StartTask was exactly the same as CreateTask 50 lines above.

* Restore poorly merged test case
上级 359b9c1c
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册