public void Finish_ActivityWithNoneStateAndFailingFinish_StateIsPreserved() { // Setup var activity = new SimpleActivity(false, false, true); // Call activity.Finish(); // Assert Assert.AreEqual(ActivityState.None, activity.State); }
public void Finish_ActivityWithSpecificStateAndFailingFinish_StateIsChangedToFailed(ActivityState state) { // Setup var activity = new SimpleActivity(false, false, true, state); // Call activity.Finish(); // Assert Assert.AreEqual(ActivityState.Failed, activity.State); }