public void Execute() { if (this.ThrowException) { throw new InvalidOperationException(); } Thread.Sleep(this.SleepDuration); }