Exemplo n.º 1
0
        public void ShouldAddToExecutionQueue()
        {
            Executor executor = new Executor();
            Action   task     = () => Console.WriteLine("Task");

            executor.AddToExecutionQueue(task);
            int expectedResult = executor.NumberOfTasks;

            Assert.That(expectedResult, Is.EqualTo(1));
        }