public void ReturnOnceTest() { IWfActivity activityD = ReturnExecutorTestHelper.PrepareAndMoveToSpecialActivity(); Assert.AreEqual("D", activityD.Descriptor.Key); ReturnExecutorTestHelper.OutputMainStream(activityD.Process); ReturnExecutorTestHelper.OutputEveryActivities(activityD.Process); ReturnExecutorTestHelper.ValidateMainStreamActivities(activityD.Process, "A", "B", "C", "D", "F"); ReturnExecutorTestHelper.ExecuteReturnOperation(activityD, "A"); IWfActivity returnedActivity = activityD.Process.CurrentActivity; Assert.AreEqual("A", returnedActivity.Descriptor.AssociatedActivityKey); Assert.AreEqual(activityD.ID, returnedActivity.CreatorInstanceID); ReturnExecutorTestHelper.ValidateBRelativeActivityOutTransitions(activityD.Process.CurrentActivity); ReturnExecutorTestHelper.OutputMainStream(activityD.Process); ReturnExecutorTestHelper.OutputEveryActivities(activityD.Process); ReturnExecutorTestHelper.ValidateMainStreamActivities(activityD.Process, "A", "B", "C", "D", "F"); }