public void DisposeNativeResourcesDisposed_Dispose() { var nativeResourcesDisposed = false; var instance = new DisposableImpl { OnDisposeNativeResources = () => nativeResourcesDisposed = true }; instance.Dispose(); Assert.True(nativeResourcesDisposed); }
public void DisposeManagedResources_Dispose() { var managedResourcesDisposed = false; var instance = new DisposableImpl { OnDisposeManagedResources = () => managedResourcesDisposed = true }; instance.Dispose(); Assert.True(managedResourcesDisposed); }