protected virtual void OnDisposed(DisposedEventArgs args)
        {
            var disposed = this.Disposed;

            if (disposed != null)
            {
                disposed(this, args);
            }
        }
        private void DisposableObject_Disposed(object sender, DisposedEventArgs e)
        {
            _state  = DISPOSED_STATE;
            _target = null;

            var target = sender as IDisposableObject;

            if (target != null)
            {
                target.Disposed -= DisposableObject_Disposed;
            }
        }
		private void Reference_Disposed(object sender, DisposedEventArgs e)
		{
			var disposableObject = (IDisposableObject)sender;

			Assert.IsTrue(disposableObject.IsDisposed);
		}