public void Unmanaged_do_not_work() { var d = new DisposableObject(); var disposer = new NoneOptionDisposer(d); d.IsDisposed.IsFalse(); d.IsOpenedUnmanagedResource.IsTrue(); disposer.Dispose(); d.IsDisposed.IsTrue(); d.IsOpenedUnmanagedResource.IsTrue(); // Did not release resources }
public void SetNull_do_not_work() { var d = new DisposableObject(); var disposer = new NoneOptionDisposer(d); d.IsDisposed.IsFalse(); d.NullableValue.IsNotNull(); disposer.Dispose(); d.IsDisposed.IsTrue(); d.NullableValue.IsNotNull(); // Did not set null }