public void RemoteCancellationDisposable_RemotingBehavior()
        {
            var guid             = Guid.NewGuid();
            var testProvider     = new TestCancellationProvider(guid);
            var remoteDisposable = new RemoteCancellationDisposable(testProvider, guid);

            Assert.IsNull(remoteDisposable.InitializeLifetimeService());
        }
        public void RemoteCancellationDisposable_Simple()
        {
            var guid             = Guid.NewGuid();
            var testProvider     = new TestCancellationProvider(guid);
            var remoteDisposable = new RemoteCancellationDisposable(testProvider, guid);

            remoteDisposable.Dispose();
            Assert.IsTrue(testProvider.Cancelled);

            // Idempotency
            testProvider.Cancelled = false;
            remoteDisposable.Dispose();
            Assert.IsFalse(testProvider.Cancelled);
        }