コード例 #1
0
        public void Calls_Init_Action_At_Start()
        {
            bool called = false;
            this.Scheduler = new SingleThreadTaskScheduler(() => called = true);

            this.ExecuteAndWait(() => Assert.IsTrue(called));

            Assert.IsTrue(called);
        }
コード例 #2
0
 public VideoMetadataProvider()
 {
     this._scheduler = new SingleThreadTaskScheduler(() => this._shell = new Shell());
 }
コード例 #3
0
        private SingleThreadTaskScheduler Create()
        {
            this.Scheduler = new SingleThreadTaskScheduler(this.ApartementState);

            return this.Scheduler;
        }
コード例 #4
0
        public void TearDown()
        {
            if (this.Scheduler != null)
                this.Scheduler.Dispose();

            this.Scheduler = null;
        }