Пример #1
0
        public void Test_Start3ThreadsAsync()
        {
            MyScheduler scheduler = new MyScheduler();
            var task = scheduler.Start3ThreadsAsync();

            Assert.IsNotNull(task);

            // takes max delay (about 1 min)
            task.Wait();
            Assert.AreEqual(1, task.Result);

            Assert.IsTrue(true);
        }
Пример #2
0
        public void Test_Start3Threads()
        {
            MyScheduler scheduler = new MyScheduler();
            scheduler.Start3Threads();

            Assert.IsTrue(true);
        }