예제 #1
0
        public void Add_Tasks_TasksAdded()
        {
            var target = new StubTaskExecutor();
            target.Add(() => { });
            target.Add(() => { });
            target.Add(() => { });

            Assert.AreEqual(3, target.GetTasks().Count);
        }
예제 #2
0
        public void Add_Tasks_TasksAdded()
        {
            var target = new StubTaskExecutor();

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

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

            target.Clear();
            Assert.AreEqual(0, target.GetTasks().Count);
        }
예제 #4
0
        public void Clear_Tasks_TasksClean()
        {
            var target = new StubTaskExecutor();

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

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