public void DisposingTwoTimesWillNotThrow()
        {
            var cacheOwner = new TaskCacheOwner();

            cacheOwner.Dispose();
            cacheOwner.Dispose();
        }
        public void EnsureTaskCacheIsReused()
        {
            // arrange
            var        cacheOwner1 = new TaskCacheOwner();
            ITaskCache cache       = cacheOwner1.Cache;

            cacheOwner1.Dispose();

            // act
            using var cacheOwner2 = new TaskCacheOwner();

            // assert
            Assert.Same(cache, cacheOwner2.Cache);
        }