public void SetNativeBrush_Brush_Success() { using (var brush = new SubBrush()) { brush.PublicSetNativeBrush((IntPtr)10); brush.PublicSetNativeBrush(IntPtr.Zero); brush.PublicSetNativeBrush((IntPtr)10); brush.PublicSetNativeBrush(IntPtr.Zero); } }
public void Dispose_NoSuchEntryPoint_SilentyCatchesException() { var brush = new SubBrush(); brush.PublicSetNativeBrush((IntPtr)10); // No EntryPointNotFoundException will be thrown. brush.Dispose(); }