public void TestSimpleCall()
        {
            int    value = 0;
            Action act   = () =>
            {
                value++;
            };

            var testInst = new ActionThreadPoolWorkItem(act);

            testInst.Run(false, false);

            Assert.AreEqual(1, value);
        }
        public void TestCallWithExecutionContext()
        {
            int    value = 0;
            Action act   = () =>
            {
                value++;
            };

            var testInst = new ActionThreadPoolWorkItem(act);

            testInst.CaptureExecutionContext(false);

            testInst.Run(true, true);

            Assert.AreEqual(1, value);
        }