protected override void EstablishContext() { base.EstablishContext(); TimerService.Raise(t => t.Elapsed += null, EventArgs.Empty); }
public void Test() { Target.Verify(t => t.Run(), Times.Never()); TimerService.Raise(s => s.Elapsed += null, EventArgs.Empty); Target.Verify(t => t.Run(), Times.Once()); }