public void DisposeTest()
        {
            //act
            _task.Dispose();

            //assert
            Assert.AreEqual(PandaTaskStatus.Rejected, _task.Status);
            Assert.IsInstanceOf <ObjectDisposedException>(_task.Error);
        }
        public void DisposeTest()
        {
            //arrange
            var testTask = new PandaTask <int>();

            //act
            testTask.Dispose();

            //assert
            Assert.AreEqual(PandaTaskStatus.Rejected, testTask.Status);
            Assert.IsInstanceOf <ObjectDisposedException>(testTask.Error);
        }
        public void DisposeTest()
        {
            //arrange
            PandaTask <int> testTask = ConstructTask <int, int>();

            //act
            testTask.Dispose();

            //assert
            Assert.AreEqual(PandaTaskStatus.Rejected, testTask.Status);

            Assert.Throws <ObjectDisposedException>(() =>
            {
                var _ = testTask.Result;
            });
            Assert.IsInstanceOf <ObjectDisposedException>(testTask.Error);
        }