public void TryDispose_DisposesDisposable()
        {
            //This should do nothing/not error
            var t = new TestDisposable();

            t.TryDispose();
        }
        public void TryDispose_RethrowsErrorWithNoneOption()
        {
            //This should do nothing/not error
            var t = new TestDisposable();

            t.ErrorOnDispose = true;
            t.TryDispose(DisposeOptions.None);
        }
        public void TryDispose_SupressesExceptionWithSuppressOption()
        {
            //This should do nothing/not error
            var t = new TestDisposable();

            t.ErrorOnDispose = true;
            t.TryDispose(DisposeOptions.SuppressExceptions);
        }
        public void TryDispose_Rethrows_OutOfMemory()
        {
            //This should do nothing/not error
            TestDisposable o = new TestDisposable()
            {
                ErrorOnDispose          = true,
                UseOutOfMemoryException = true
            };

            o.TryDispose();
        }