This project is read-only.

DelayUntilDateTime in unit testing

Jul 9, 2012 at 9:26 AM


I'm trying to unit test a workflow with a DelayUntilDateTime activity. I'm using WorkflowInvokerTest helper class.

The delay period is determined by a workflow variable assigned by a message activity. in the unit i set it to one day. however, i keep getting this exception:

System.TimeoutException: The operation did not complete within the allotted timeout of 00:00:01. The time allotted to this operation may have been a portion of a longer timeout.


my questions are:

  1. Should i use WorkflowApplicationTest instead of WorkflowInvokerTest ?
  2. I tried SetImplementation for the DelayUntilDateTime activity but still getting the same exception. is this the right context to use SetImplementation ?