11 references to ReleaseHdcInternal
System.Drawing.Common.Tests (11)
mono\System.Drawing\GraphicsTests.cs (5)
2136g.ReleaseHdcInternal(hdc1); 2138g.ReleaseHdcInternal(hdc2); 2147Assert.Throws<ArgumentException>(() => g.ReleaseHdcInternal(IntPtr.Zero)); 2156g.ReleaseHdcInternal(hdc); 2157Assert.Throws<ArgumentException>(() => g.ReleaseHdcInternal(hdc));
System\Drawing\GraphicsTests.cs (6)
140AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(hdc)); 145AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(hdc)); 148graphics.ReleaseHdcInternal(hdc); 150AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(hdc)); 192AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(IntPtr.Zero)); 204AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(IntPtr.Zero));