示例#1
0
        public void Finish_ActivityWithNoneStateAndFailingFinish_StateIsPreserved()
        {
            // Setup
            var activity = new SimpleActivity(false, false, true);

            // Call
            activity.Finish();

            // Assert
            Assert.AreEqual(ActivityState.None, activity.State);
        }
示例#2
0
        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);
        }