Ejemplo n.º 1
0
 /// <summary>
 /// Await a task in a test method that is not asynchronous, such as a test fixture setup
 /// </summary>
 /// <param name="taskFactory"></param>
 /// <param name="cancellationToken"></param>
 protected void Await(Func <Task> taskFactory, CancellationToken cancellationToken)
 {
     AsyncTestHarness.Await(taskFactory, cancellationToken);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Await a task in a test method that is not asynchronous, such as a test fixture setup
 /// </summary>
 /// <param name="taskFactory"></param>
 /// <param name="cancellationToken"></param>
 protected T Await <T>(Func <Task <T> > taskFactory, CancellationToken cancellationToken)
 {
     return(AsyncTestHarness.Await(taskFactory, cancellationToken));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Await a task in a test method that is not asynchronous, such as a test fixture setup
 /// </summary>
 /// <param name="taskFactory"></param>
 protected void Await(Func <Task> taskFactory)
 {
     AsyncTestHarness.Await(taskFactory);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Await a task in a test method that is not asynchronous, such as a test fixture setup
 /// </summary>
 /// <param name="taskFactory"></param>
 protected T Await <T>(Func <Task <T> > taskFactory)
 {
     return(AsyncTestHarness.Await(taskFactory));
 }