public void SuppressFinalize_Call_Dispose() { using (var unmanagedHandler = new UnmanagedHandler()) { unmanagedHandler.WriteToFile(HelloWorld); unmanagedHandler.ReadFile(); } }
public void Call_Finalizer_UnmanagedHandler() { var unmanagedHandler = new UnmanagedHandler(); unmanagedHandler.WriteToFile(HelloWorld); unmanagedHandler.ReadFile(); }