public void Calls_Init_Action_At_Start() { bool called = false; this.Scheduler = new SingleThreadTaskScheduler(() => called = true); this.ExecuteAndWait(() => Assert.IsTrue(called)); Assert.IsTrue(called); }
public VideoMetadataProvider() { this._scheduler = new SingleThreadTaskScheduler(() => this._shell = new Shell()); }
private SingleThreadTaskScheduler Create() { this.Scheduler = new SingleThreadTaskScheduler(this.ApartementState); return this.Scheduler; }
public void TearDown() { if (this.Scheduler != null) this.Scheduler.Dispose(); this.Scheduler = null; }