public void ProcesserHeadOff() { LogUtils.Debug("<———— 开始 Process 单元测试(立即拦截) ————>"); TestProcesser processer = new TestProcesser(); processer.ProcessStarted += this.ProcesseStartedButCancelImmediately; processer.ProcessReport += this.ProcessReport; processer.ProcessCompleted += this.ProcesseCompleted; processer.Process(); }
public void ProcesserCancel() { LogUtils.Debug("<———— 开始 Process 单元测试(自动取消) ————>"); TestProcesser processer = new TestProcesser(); processer.ProcessStarted += this.ProcesseStarted; processer.ProcessReport += this.ProcessReportAndCancel; processer.ProcessCompleted += this.ProcesseCompleted; processer.Process(); Thread.Sleep(3000); }
public void ProcesserTest() { LogUtils.Debug("<———— 开始 Process 单元测试(自动结束) ————>"); TestProcesser processer = new TestProcesser(); processer.ProcessStarted += this.ProcesseStarted; processer.ProcessReport += this.ProcessReport; processer.ProcessCompleted += this.ProcesseCompleted; processer.Process(); Thread.Sleep(6000); }