A delegate-driven task. Only completion is reported, no intermediate progress.
Inheritance: TaskBase
Ejemplo n.º 1
0
        public void TestCallback()
        {
            bool called = false;

            var task = new SimpleTask("Test task", () => called = true);
            task.Run();

            called.Should().BeTrue();
        }
Ejemplo n.º 2
0
        public void TestCallback()
        {
            bool called = false;

            var task = new SimpleTask("Test task", () => called = true);

            task.Run();

            called.Should().BeTrue();
        }