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(); }