public void Stop_NoArgs_StopRequestedTrue()
 {
     var target = new StubTaskExecutor();
     target.Start();
     target.Stop();
     Assert.IsTrue(target.GetStopRequested());
 }
Esempio n. 2
0
        public void Stop_NoArgs_StopRequestedTrue()
        {
            var target = new StubTaskExecutor();

            target.Start();
            target.Stop();
            Assert.IsTrue(target.GetStopRequested());
        }
        public void Add_Tasks_TasksAdded()
        {
            var target = new StubTaskExecutor();
            target.Add(() => { });
            target.Add(() => { });
            target.Add(() => { });

            Assert.AreEqual(3, target.GetTasks().Count);
        }
        public void Clear_Tasks_TasksClean()
        {
            var target = new StubTaskExecutor();
            target.Add(() => { });
            target.Add(() => { });
            target.Add(() => { });

            target.Clear();
            Assert.AreEqual(0, target.GetTasks().Count);
        }
Esempio n. 5
0
        public void Add_Tasks_TasksAdded()
        {
            var target = new StubTaskExecutor();

            target.Add(() => { });
            target.Add(() => { });
            target.Add(() => { });

            Assert.AreEqual(3, target.GetTasks().Count);
        }
Esempio n. 6
0
        public void Clear_Tasks_TasksClean()
        {
            var target = new StubTaskExecutor();

            target.Add(() => { });
            target.Add(() => { });
            target.Add(() => { });

            target.Clear();
            Assert.AreEqual(0, target.GetTasks().Count);
        }