public void Execute_WhenStatusIsComplete()
        {
            var mockEl = new Mock<DummyCompoundElement>();

            using (RecordExpectations recorder = RecorderManager.StartRecording())
            {
                recorder.ExpectAndReturn(mockEl.Status, ElementStatus.Complete).Repeat(2);
                mockEl.ResetWithNotification(false);
                mockEl.ExecutionProper();
            }

            mockEl.Execute();
            MockManager.Verify();
        }
        public void Execute_WhenStatusIsValidating()
        {
            var mockEl = new Mock<DummyCompoundElement>();

            using (RecordExpectations recorder = RecorderManager.StartRecording())
            {
                recorder.ExpectAndReturn(mockEl.Status, ElementStatus.Validating).Repeat(4);
                mockEl.Cancel();
                mockEl.ExecutionProper();
            }

            mockEl.Execute();
            MockManager.Verify();
        }