4 writes to MaximumBuffer
System.Drawing.Common.Tests (4)
System\Drawing\BufferedGraphicsContextTests.cs (4)
187context.MaximumBuffer = new Size(10, 10); 190context.MaximumBuffer = new Size(255, 255); 200AssertExtensions.Throws<ArgumentException>("value", null, () => context.MaximumBuffer = new Size(width, 1)); 209AssertExtensions.Throws<ArgumentException>("value", null, () => context.MaximumBuffer = new Size(1, height));
17 references to MaximumBuffer
System.Drawing.Common.Tests (17)
System\Drawing\BufferedGraphicsContextTests.cs (15)
14Assert.Equal(new Size(225, 96), context.MaximumBuffer); 35using BufferedGraphics bufferedGraphics = context.Allocate(graphics, new Rectangle(0, 0, context.MaximumBuffer.Width - 1, context.MaximumBuffer.Height - 1)); 47using BufferedGraphics bufferedGraphics = context.Allocate(graphics, new Rectangle(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1)); 84using (BufferedGraphics bufferedGraphics = context.Allocate(hdc, new Rectangle(0, 0, context.MaximumBuffer.Width - 1, context.MaximumBuffer.Height - 1))) 106using (BufferedGraphics bufferedGraphics = context.Allocate(hdc, new Rectangle(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1))) 150Rectangle largeRectangle = new(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1); 165Rectangle largeRectangle = new(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1); 188Assert.Equal(new Size(10, 10), context.MaximumBuffer); 191Assert.Equal(new Size(255, 255), context.MaximumBuffer);
System\Drawing\BufferedGraphicsTests.cs (2)
29BufferedGraphics graphics = context.Allocate(targetGraphics, new Rectangle(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1));