Example #1
0
        public void AddAsyncTest()
        {
            var scheduler = new TestableScheduler();

            var target = new AsyncTask(scheduler)
            {
                Value = 3
            };

            target.AddAsyncWithScheduler(5);

            scheduler.RunAll();

            Thread.Sleep(2000);

            Assert.AreEqual(8, target.Value);
        }