public void Dispose_False() { Bitmap bmp = new Bitmap(1, 1); Graphics default_graphics = Graphics.FromImage(bmp); Rectangle default_rect = new Rectangle(Int32.MinValue, Int32.MinValue, Int32.MaxValue, Int32.MaxValue); PaintEventArgsTester pea = new PaintEventArgsTester(default_graphics, default_rect); pea.Graphics.Dispose(); pea.DisposeBool(false); Assert.IsTrue(pea.Graphics.Transform.IsIdentity, "Graphics.Transform"); }
public void Dispose_False () { Bitmap bmp = new Bitmap (1, 1); Graphics default_graphics = Graphics.FromImage (bmp); Rectangle default_rect = new Rectangle (Int32.MinValue, Int32.MinValue, Int32.MaxValue, Int32.MaxValue); PaintEventArgsTester pea = new PaintEventArgsTester (default_graphics, default_rect); pea.Graphics.Dispose (); pea.DisposeBool (false); Assert.IsTrue (pea.Graphics.Transform.IsIdentity, "Graphics.Transform"); }