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