843 references to Empty
System.Drawing.Common.Tests (10)
System\Drawing\GraphicsTests.cs (9)
1648
Assert.ThrowsAny<ArgumentException>(() => graphics.CopyFromScreen(1, 2, 3, 4, Size.
Empty
, copyPixelOperation));
1660
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
));
1661
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
, CopyPixelOperation.DestinationInvert));
1662
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
));
1663
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
, CopyPixelOperation.DestinationInvert));
1678
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
));
1679
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.
Empty
, CopyPixelOperation.MergeCopy));
1680
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
));
1681
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.
Empty
, CopyPixelOperation.MergeCopy));
System\Drawing\ToolboxBitmapAttributeTests.cs (1)
38
if (size == Size.
Empty
)
System.Windows.Forms (122)
System\Windows\Forms\Control.cs (9)
1592
protected virtual Size DefaultSize => Size.
Empty
;
2471
if (value == Size.
Empty
)
3740
get { return GetPreferredSize(Size.
Empty
); }
5191
if (MaximumSize != Size.
Empty
|| MinimumSize != Size.
Empty
)
9707
MinimumSize = Size.
Empty
;
9708
MaximumSize = Size.
Empty
;
9755
LayoutUtils.UnionSizes(Size.
Empty
, minSize), // make sure we don't go below 0.
9764
LayoutUtils.UnionSizes(Size.
Empty
, maxSize), // make sure we don't go below 0.
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
575
ImageSize = Size.
Empty
,
602
ImageSize = (Control.Image is null) ? Size.
Empty
: Control.Image.Size,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (8)
201
Size checkSize = checkSizeLinear > 0 ? new(checkSizeLinear + 1, checkSizeLinear) : Size.
Empty
;
205
Size requiredImageSize = (ImageSize != Size.
Empty
) ? ImageSize + textImageInsetSize : Size.
Empty
;
211
Size textSize = Size.
Empty
;
286
layout.Focus = ImageSize != Size.
Empty
490
if (ImageSize == Size.
Empty
|| Text is null || Text.Length == 0 || textImageRelation == TextImageRelation.Overlay)
497
if (layout.Options.DotNetOneButtonCompat && ImageSize != Size.
Empty
)
663
Size textSize = Size.
Empty
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
816
Size textExtent = Size.
Empty
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2302
return GetPreferredSize(screen, dataGridViewCellStyle, rowIndex, Size.
Empty
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
568
glyphSize = Size.
Empty
;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (4)
431
preferredSize = Size.
Empty
;
443
preferredSize = Size.
Empty
;
466
preferredSize = Size.
Empty
;
478
preferredSize = Size.
Empty
;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
602
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Controls\Labels\Label.cs (2)
1021
bordersAndPadding += SizeFromClientSize(Size.
Empty
);
1058
proposedConstraints = LayoutUtils.UnionSizes(proposedConstraints, Size.
Empty
);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
139
private Size _tileSize = Size.
Empty
;
1650
return Size.
Empty
;
1701
return !_tileSize.Equals(Size.
Empty
);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1039
Size bordersAndPadding = SizeFromClientSize(Size.
Empty
) + Padding.Size;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
428
Size scrollBarPadding = Size.
Empty
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
24
private static readonly Size s_defaultItemSize = Size.
Empty
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
403
Size scrollBarPadding = Size.
Empty
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
821
Size bordersAndPadding = SizeFromClientSize(Size.
Empty
) + Padding.Size;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
449
size = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (2)
15
private Size _cachedHDCSize = Size.
Empty
;
64
_cachedHDCSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
54
private Size _largestDisplayedItemSize = Size.
Empty
;
2268
Size maxSize = Size.
Empty
;
2331
Size maxSize = Size.
Empty
;
2395
return item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
4239
Size biggestItemSize = Size.
Empty
; // used in determining OnPaint caching.
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1052
internal Size GetSuggestedSize() => AutoSize ? GetPreferredSize(Size.
Empty
) : Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (8)
14
private Size _maxItemSize = Size.
Empty
;
275
Size maxTextSize = Size.
Empty
;
276
Size maxImageSize = Size.
Empty
;
278
Size maxArrowSize = Size.
Empty
;
279
Size maxNonMenuItemSize = Size.
Empty
;
307
Size imageSize = Size.
Empty
;
794
Size upSize = UpScrollButton.GetPreferredSize(Size.
Empty
);
800
Size downSize = DownScrollButton.GetPreferredSize(Size.
Empty
);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
77
Size preferredSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
567
content.Size = LayoutUtils.UnionSizes(Size.
Empty
, content.Size);
1553
return Size.
Empty
;
1569
? Owner?.ImageList?.ImageSize ?? Size.
Empty
1570
: (image is null) ? Size.
Empty
: image.Size;
2349
return Size.
Empty
;
2351
else if (_cachedTextSize == Size.
Empty
)
2813
_cachedTextSize = Size.
Empty
;
2992
_cachedTextSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
175
return Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
49
private Size _cachedShortcutSize = Size.
Empty
;
176
_cachedShortcutSize = Size.
Empty
;
723
return Size.
Empty
;
729
return Size.
Empty
;
732
if (_cachedShortcutSize == Size.
Empty
)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
134
Size biggestItemSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
44
MinimumSize = Size.
Empty
; // consider 1,1
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
341
if (toolStrip.MinimumSize == Size.
Empty
)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
84
Size totalSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
86
Size totalSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
347
Rectangle bounds = new(Point.Empty, item?.Size ?? Size.
Empty
);
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
125
Size preferredSize = Size.
Empty
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
36
return Size.
Empty
;
270
itemSize = item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
412
itemSize = item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
53
private Size _webBrowserBaseChangingSize = Size.
Empty
;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
19
private Size _maxSize = Size.
Empty
;
System\Windows\Forms\Form.cs (5)
149
private Size _autoScaleBaseSize = Size.
Empty
;
150
private Size _minAutoSize = Size.
Empty
;
502
_minAutoSize = Size.
Empty
;
1193
get => Properties.TryGetValue(s_propMaxTrackSize, out Size maximumSize) ? maximumSize : Size.
Empty
;
5933
_autoScaleBaseSize = Size.
Empty
;
System\Windows\Forms\Input\Cursor.cs (1)
22
private static Size s_cursorSize = Size.
Empty
;
System\Windows\Forms\Layout\CommonProperties.cs (5)
348
Debug.Assert(xGetPreferredSizeCache(element) == Size.
Empty
, "Error detected in xClearPreferredSizeCache.");
373
/// value of <see cref="LayoutUtils.s_maxSize"/> (or <see cref="Size.
Empty
"/> too).
382
return Size.
Empty
;
391
value == Size.
Empty
|| value != xGetPreferredSizeCache(element),
681
return Size.
Empty
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
684
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Layout\DefaultLayout.cs (3)
380
Size preferredSize = Size.
Empty
;
634
Size preferredSizeForDocking = Size.
Empty
;
1112
Size prefSize = Size.
Empty
;
System\Windows\Forms\Layout\FlowLayout.cs (2)
65
Size layoutSize = Size.
Empty
;
167
Size rowSize = Size.
Empty
;
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
69
public virtual Size MinimumSize => CommonProperties.GetMinimumSize(Element!, Size.
Empty
);
System\Windows\Forms\Layout\LayoutEngine.cs (1)
22
return Size.
Empty
;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
45
Size largestSize = Size.
Empty
;
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
385
return Size.
Empty
;
System\Windows\Forms\Layout\TableLayout.cs (2)
619
Size preferredSize = Size.
Empty
;
732
maxWidth = GetElementSize(element, Size.
Empty
).Width;
System\Windows\Forms\Panels\Panel.cs (1)
155
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
223
get => Collapsed ? Size.
Empty
: base.Size;
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
47
private Size _imageSize = Size.
Empty
;
556
SetVirtualSizeNoInvalidate(Size.
Empty
);
System\Windows\Forms\Rendering\TextExtensions.cs (2)
221
return Size.
Empty
;
286
return Size.
Empty
;
System\Windows\Forms\Rendering\TextRenderer.cs (2)
518
return Size.
Empty
;
536
return Size.
Empty
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (7)
22
private Size _userAutoScrollMinSize = Size.
Empty
;
32
private Size _scrollMargin = Size.
Empty
;
37
private Size _requestedScrollMargin = Size.
Empty
;
929
private void ResetAutoScrollMargin() => AutoScrollMargin = Size.
Empty
;
931
private void ResetAutoScrollMinSize() => AutoScrollMinSize = Size.
Empty
;
1125
private bool ShouldSerializeAutoScrollMargin() => !AutoScrollMargin.Equals(Size.
Empty
);
1131
private bool ShouldSerializeAutoScrollMinSize() => !AutoScrollMinSize.Equals(Size.
Empty
);
System\Windows\Forms\SystemInformation.cs (2)
771
: Size.
Empty
;
786
: Size.
Empty
;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1538
bubbleSize = Size.
Empty
;
System.Windows.Forms.Design (31)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
363
return Size.
Empty
;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
57
Size subtitleSize = Size.
Empty
;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (6)
21
private Size _watermarkSize = Size.
Empty
;
128
_minimumSize = Size.
Empty
;
129
_watermarkSize = Size.
Empty
;
231
private Size _minimumSize = Size.
Empty
;
237
if (_minimumSize == Size.
Empty
)
356
if (_watermarkSize == Size.
Empty
)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
110
_parentGridSize = Size.
Empty
;
874
_parentGridSize = Size.
Empty
;
System\Windows\Forms\Design\CommandSet.cs (11)
593
return prop is not null ? (Size)prop.GetValue(comp)! : Size.
Empty
;
623
snapSize = gridSizeProp is not null ? (Size)gridSizeProp.GetValue(snapComponent)! : Size.
Empty
;
1117
Size gridSize = Size.
Empty
;
2296
Size primarySize = Size.
Empty
;
2395
Size grid = Size.
Empty
;
2529
Size grid = Size.
Empty
;
2557
Size curSize = Size.
Empty
, lastSize = Size.
Empty
;
2598
curSize = Size.
Empty
;
2622
curSize = Size.
Empty
;
3290
Size gridSize = Size.
Empty
;
System\Windows\Forms\Design\ComponentTray.cs (2)
30
private Size _grabHandle = Size.
Empty
; // Size of the grab handles.
2803
private Size _snapSize = Size.
Empty
;
System\Windows\Forms\Design\ControlCommandSet.cs (2)
435
snapSize = Size.
Empty
;
683
Size snapSize = Size.
Empty
;
System\Windows\Forms\Design\DesignerUtils.cs (2)
20
private static Size s_minDragSize = Size.
Empty
;
142
if (s_minDragSize == Size.
Empty
)
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
21
private Size _autoScaleBaseSize = Size.
Empty
;
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
50
private Size _gridSize = Size.
Empty
;
435
Size size = Size.
Empty
;
952
if (size != Size.
Empty
)
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\ByteViewerTests.cs (6)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
100
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
319
GetIconResourceAsBestMatchBitmap(type, resource, Size.
Empty
);
System.Windows.Forms.Tests (669)
System\Windows\Forms\AxHostTests.cs (8)
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
158
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
159
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
186
Assert.Equal(Size.
Empty
, control.MaximumSize);
187
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ButtonBaseTests.cs (5)
55
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
90
Assert.Equal(Size.
Empty
, control.MaximumSize);
91
Assert.Equal(Size.
Empty
, control.MinimumSize);
4999
yield return new object[] { flatStyle, Size.
Empty
};
System\Windows\Forms\ButtonTests.cs (30)
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
93
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
598
Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.
Empty
));
603
Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.
Empty
));
699
Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
704
Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
954
Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
959
Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
1169
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(14, 9) };
1182
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1218
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(18, 15) };
1231
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1268
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(18, 15) };
1281
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(18, 15) };
1319
yield return new object[] { Size.
Empty
};
1378
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(8, 8) };
1391
yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(6, 6) };
1404
yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(6, 6) };
1419
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1456
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(12, 14) };
1469
yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1482
yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1497
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1535
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(12, 14) };
1548
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(12, 14) };
1563
yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1576
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(10, 12) };
1615
yield return new object[] { Size.
Empty
};
System\Windows\Forms\CheckBoxTests.cs (4)
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ComboBoxTests.cs (4)
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
104
Assert.Equal(Size.
Empty
, control.MaximumSize);
105
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ContainerControlTests.cs (10)
31
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
33
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
51
Assert.Equal(Size.
Empty
, control.ClientSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
66
Assert.Equal(Size.
Empty
, control.DefaultSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
Assert.Equal(Size.
Empty
, control.MinimumSize);
102
Assert.Equal(Size.
Empty
, control.PreferredSize);
112
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\ControlTests.cs (34)
38
Assert.Equal(Size.
Empty
, control.ClientSize);
50
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
51
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultSize);
76
Assert.Equal(Size.
Empty
, control.MaximumSize);
77
Assert.Equal(Size.
Empty
, control.MinimumSize);
80
Assert.Equal(Size.
Empty
, control.PreferredSize);
90
Assert.Equal(Size.
Empty
, control.Size);
127
Assert.Equal(Size.
Empty
, control.ClientSize);
139
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
140
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
142
Assert.Equal(Size.
Empty
, control.DefaultSize);
165
Assert.Equal(Size.
Empty
, control.MaximumSize);
166
Assert.Equal(Size.
Empty
, control.MinimumSize);
169
Assert.Equal(Size.
Empty
, control.PreferredSize);
179
Assert.Equal(Size.
Empty
, control.Size);
235
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
236
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
238
Assert.Equal(Size.
Empty
, control.DefaultSize);
261
Assert.Equal(Size.
Empty
, control.MaximumSize);
262
Assert.Equal(Size.
Empty
, control.MinimumSize);
320
Assert.Equal(Size.
Empty
, control.ClientSize);
331
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
332
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
334
Assert.Equal(Size.
Empty
, control.DefaultSize);
357
Assert.Equal(Size.
Empty
, control.MaximumSize);
358
Assert.Equal(Size.
Empty
, control.MinimumSize);
361
Assert.Equal(Size.
Empty
, control.PreferredSize);
371
Assert.Equal(Size.
Empty
, control.Size);
427
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
428
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
430
Assert.Equal(Size.
Empty
, control.DefaultSize);
453
Assert.Equal(Size.
Empty
, control.MaximumSize);
454
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ControlTests.Methods.cs (100)
2318
yield return new object[] { Size.
Empty
};
2330
Assert.Equal(Size.
Empty
, control.GetPreferredSize(proposedSize));
2334
Assert.Equal(Size.
Empty
, control.GetPreferredSize(proposedSize));
2356
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), Size.
Empty
};
2357
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), new Size(10, 20) };
2358
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), new Size(30, 40) };
2359
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), new Size(31, 40) };
2360
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), new Size(30, 41) };
2361
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), new Size(40, 50) };
2362
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), Size.
Empty
};
2363
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), Size.
Empty
};
2364
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), Size.
Empty
};
2365
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), Size.
Empty
};
2366
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), Size.
Empty
};
7424
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, 30, 40, 1 };
7425
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, 30, 40, 1 };
7426
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, 30, 40, 0 };
7427
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, 31, 40, 0 };
7428
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, 30, 41, 0 };
7429
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, 40, 50, 0 };
7430
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, 20, 10, 1 };
7431
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, 30, 40, 1 };
7432
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, 30, 40, 1 };
7433
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, 30, 40, 1 };
7434
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, 30, 40, 1 };
8211
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8212
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8213
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 0 };
8214
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 31, 40, 0 };
8215
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 41, 0 };
8216
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 40, 50, 0 };
8217
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 20, 10, 1 };
8218
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8219
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8220
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8221
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
9031
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9032
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9033
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 0 };
9034
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, specified, 31, 40, 1, 0 };
9035
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, specified, 30, 41, 1, 0 };
9036
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, specified, 40, 50, 1, 0 };
9037
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, specified, 20, 10, 1, 1 };
9038
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9039
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9040
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9041
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
10098
yield return new object[] { Size.
Empty
};
10341
Assert.Equal(Size.
Empty
, control.ClientSize);
10344
Assert.Equal(Size.
Empty
, control.Size);
10360
Assert.Equal(Size.
Empty
, control.ClientSize);
10363
Assert.Equal(Size.
Empty
, control.Size);
10515
Assert.Equal(Size.
Empty
, control.ClientSize);
10518
Assert.Equal(Size.
Empty
, control.Size);
10534
Assert.Equal(Size.
Empty
, control.ClientSize);
10537
Assert.Equal(Size.
Empty
, control.Size);
10607
Assert.Equal(Size.
Empty
, control.ClientSize);
10610
Assert.Equal(Size.
Empty
, control.Size);
10626
Assert.Equal(Size.
Empty
, control.ClientSize);
10629
Assert.Equal(Size.
Empty
, control.Size);
10698
Assert.Equal(Size.
Empty
, control.ClientSize);
10701
Assert.Equal(Size.
Empty
, control.Size);
10720
Assert.Equal(Size.
Empty
, control.ClientSize);
10723
Assert.Equal(Size.
Empty
, control.Size);
10994
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, 1 };
10995
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, 1 };
10996
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, 0 };
10997
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, 1 };
10998
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, 1 };
10999
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, 1 };
11000
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, 1 };
11001
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, 1 };
11002
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, 1 };
11003
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, 1 };
11004
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, 1 };
12484
yield return new object[] { Size.
Empty
, (IntPtr)(-1) };
12485
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0) };
12486
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2) };
12487
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2) };
12523
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero, false };
12524
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true };
12525
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true };
12526
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true };
12527
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, true };
12597
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero };
12598
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero };
12599
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero };
12600
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero };
12601
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
System\Windows\Forms\ControlTests.Properties.cs (85)
3286
yield return new object[] { new Control(), Size.
Empty
};
3287
yield return new object[] { new NonZeroWidthBorderedControl(), Size.
Empty
};
3288
yield return new object[] { new NonZeroHeightBorderedControl(), Size.
Empty
};
5769
yield return new object[] { Size.
Empty
, Size.
Empty
, 40, 0, 40, 1 };
5770
yield return new object[] { new Size(10, 20), Size.
Empty
, 40, 10, 40, 1 };
5771
yield return new object[] { new Size(30, 40), Size.
Empty
, 40, 30, 40, 0 };
5772
yield return new object[] { new Size(31, 40), Size.
Empty
, 40, 31, 40, 0 };
5773
yield return new object[] { new Size(30, 41), Size.
Empty
, 40, 30, 41, 0 };
5774
yield return new object[] { new Size(40, 50), Size.
Empty
, 40, 40, 50, 0 };
5775
yield return new object[] { Size.
Empty
, new Size(20, 10), 40, 0, 10, 1 };
5776
yield return new object[] { Size.
Empty
, new Size(30, 40), 40, 0, 40, 1 };
5777
yield return new object[] { Size.
Empty
, new Size(31, 40), 40, 0, 40, 1 };
5778
yield return new object[] { Size.
Empty
, new Size(30, 41), 40, 0, 40, 1 };
5779
yield return new object[] { Size.
Empty
, new Size(40, 50), 40, 0, 40, 1 };
7883
yield return new object[] { new Control(), Size.
Empty
};
7913
yield return new object[] { Size.
Empty
};
7937
Assert.Equal(Size.
Empty
, control.Size);
7944
Assert.Equal(Size.
Empty
, control.Size);
7962
Assert.Equal(Size.
Empty
, control.Size);
7969
Assert.Equal(Size.
Empty
, control.Size);
7976
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
8085
yield return new object[] { Size.
Empty
, 0 };
8122
Assert.Equal(Size.
Empty
, control.Size);
8130
Assert.Equal(Size.
Empty
, control.Size);
8140
yield return new object[] { Size.
Empty
, 0 };
8178
Assert.Equal(Size.
Empty
, control.Size);
8187
Assert.Equal(Size.
Empty
, control.Size);
8213
Assert.Equal(Size.
Empty
, control.Size);
8223
Assert.Equal(Size.
Empty
, control.Size);
8251
Assert.Equal(Size.
Empty
, control.Size);
8261
Assert.Equal(Size.
Empty
, control.Size);
8344
Assert.Equal(Size.
Empty
, control.Size);
8359
Assert.Equal(Size.
Empty
, control.Size);
8412
Assert.Equal(Size.
Empty
, control.Size);
8427
Assert.Equal(Size.
Empty
, control.Size);
8462
Assert.Equal(Size.
Empty
, control.MaximumSize);
8486
Assert.Equal(Size.
Empty
, control.MaximumSize);
8492
yield return new object[] { new Control(), Size.
Empty
};
8522
yield return new object[] { Size.
Empty
, Size.
Empty
, 0 };
8527
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0 };
8566
yield return new object[] { Size.
Empty
, new Size(1, 2), 0 };
8613
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
8729
yield return new object[] { Size.
Empty
, Size.
Empty
, 0, 0 };
8734
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0, 1 };
8790
yield return new object[] { Size.
Empty
, new Size(1, 2), 0, 1 };
8854
yield return new object[] { Size.
Empty
, Size.
Empty
, 0 };
8859
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0 };
8911
yield return new object[] { Size.
Empty
, new Size(1, 2), 0 };
8971
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
9037
yield return new object[] { Size.
Empty
, Size.
Empty
, 0, 0 };
9042
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0, 1 };
9125
yield return new object[] { Size.
Empty
, new Size(1, 2), 0, 1 };
9232
Assert.Equal(Size.
Empty
, control.MinimumSize);
9256
Assert.Equal(Size.
Empty
, control.MinimumSize);
11153
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), 30, 40, 1 };
11154
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), 30, 40, 1 };
11155
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), 30, 40, 0 };
11156
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), 31, 40, 0 };
11157
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), 30, 41, 0 };
11158
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), 40, 50, 0 };
11159
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), 20, 10, 1 };
11160
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), 30, 40, 1 };
11161
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), 30, 40, 1 };
11162
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), 30, 40, 1 };
11163
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), 30, 40, 1 };
11772
Assert.Equal(Size.
Empty
, control.Size);
11796
Assert.Equal(Size.
Empty
, control.Size);
13188
yield return new object[] { Size.
Empty
, Size.
Empty
, 30, 30, 0, 1 };
13189
yield return new object[] { new Size(10, 20), Size.
Empty
, 30, 30, 20, 1 };
13190
yield return new object[] { new Size(30, 40), Size.
Empty
, 30, 30, 40, 0 };
13191
yield return new object[] { new Size(31, 40), Size.
Empty
, 30, 31, 40, 0 };
13192
yield return new object[] { new Size(30, 41), Size.
Empty
, 30, 30, 41, 0 };
13193
yield return new object[] { new Size(40, 50), Size.
Empty
, 30, 40, 50, 0 };
13194
yield return new object[] { Size.
Empty
, new Size(20, 10), 30, 20, 0, 1 };
13195
yield return new object[] { Size.
Empty
, new Size(30, 40), 30, 30, 0, 1 };
13196
yield return new object[] { Size.
Empty
, new Size(31, 40), 30, 30, 0, 1 };
13197
yield return new object[] { Size.
Empty
, new Size(30, 41), 30, 30, 0, 1 };
13198
yield return new object[] { Size.
Empty
, new Size(40, 50), 30, 30, 0, 1 };
System\Windows\Forms\DataGridViewCellTests.cs (5)
4832
Assert.Equal(new Size(-1, -1), cell.GetPreferredSize(null, null, -1, Size.
Empty
));
5330
Assert.Equal(Size.
Empty
, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default));
5344
Assert.NotEqual(Size.
Empty
, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, flags));
5386
Assert.Equal(Size.
Empty
, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, TextFormatFlags.Default));
5400
Assert.NotEqual(Size.
Empty
, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, flags));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
61
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\DateTimePickerTests.cs (4)
65
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
66
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
96
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (6)
39
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
40
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
73
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
74
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
123
Assert.Equal(Size.
Empty
, control.MaximumSize);
125
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (7)
27
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
99
Assert.Equal(Size.
Empty
, control.MaximumSize);
100
Assert.Equal(Size.
Empty
, control.MinimumSize);
104
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\DomainUpDownTests.cs (6)
40
_sub.AutoScrollMargin.Should().Be(Size.
Empty
);
42
_sub.AutoScrollMinSize.Should().Be(Size.
Empty
);
83
_sub.DefaultMaximumSize.Should().Be(Size.
Empty
);
84
_sub.DefaultMinimumSize.Should().Be(Size.
Empty
);
121
_sub.MaximumSize.Should().Be(Size.
Empty
);
122
_sub.MinimumSize.Should().Be(Size.
Empty
);
System\Windows\Forms\FlowLayoutPanelTests.cs (7)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
96
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\FormTests.cs (6)
37
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
38
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
72
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
73
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
125
Assert.Equal(Size.
Empty
, control.MaximumSize);
127
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\GroupBoxTests.cs (4)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
80
Assert.Equal(Size.
Empty
, control.MaximumSize);
81
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\HScrollBarTests.cs (4)
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
89
Assert.Equal(Size.
Empty
, control.MaximumSize);
91
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ImageListTests.cs (1)
404
Assert.Throws<ArgumentException>("value", () => list.ImageSize = Size.
Empty
);
System\Windows\Forms\LabelTests.cs (4)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
85
Assert.Equal(Size.
Empty
, control.MaximumSize);
86
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Layout\FlowLayoutTests.cs (8)
59
Size = Size.
Empty
64
Size = Size.
Empty
120
Size = Size.
Empty
125
Size = Size.
Empty
181
Size = Size.
Empty
186
Size = Size.
Empty
242
Size = Size.
Empty
247
Size = Size.
Empty
System\Windows\Forms\ListBoxTests.cs (5)
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
96
Assert.Equal(Size.
Empty
, control.MaximumSize);
97
Assert.Equal(Size.
Empty
, control.MinimumSize);
4792
yield return new object[] { borderStyle, Size.
Empty
};
System\Windows\Forms\ListControlTests.cs (8)
42
Assert.Equal(Size.
Empty
, control.ClientSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultSize);
86
Assert.Equal(Size.
Empty
, control.MaximumSize);
87
Assert.Equal(Size.
Empty
, control.MinimumSize);
91
Assert.Equal(Size.
Empty
, control.PreferredSize);
102
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\ListViewTests.cs (5)
68
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
69
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
112
Assert.Equal(Size.
Empty
, control.MaximumSize);
113
Assert.Equal(Size.
Empty
, control.MinimumSize);
143
Assert.Equal(Size.
Empty
, control.TileSize);
System\Windows\Forms\MdiClientTests.cs (15)
38
Assert.Equal(Size.
Empty
, control.ClientSize);
64
Assert.Equal(Size.
Empty
, control.MaximumSize);
67
Assert.Equal(Size.
Empty
, control.MinimumSize);
70
Assert.Equal(Size.
Empty
, control.PreferredSize);
79
Assert.Equal(Size.
Empty
, control.Size);
775
Assert.Equal(Size.
Empty
, control.ClientSize);
778
Assert.Equal(Size.
Empty
, control.Size);
802
Assert.Equal(Size.
Empty
, control.ClientSize);
805
Assert.Equal(Size.
Empty
, control.Size);
927
Assert.Equal(Size.
Empty
, control.ClientSize);
930
Assert.Equal(Size.
Empty
, control.Size);
954
Assert.Equal(Size.
Empty
, control.ClientSize);
957
Assert.Equal(Size.
Empty
, control.Size);
1167
Assert.Equal(Size.
Empty
, control.Size);
1191
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\MdiControlStripTests.cs (6)
30
Assert.Equal(Size.
Empty
, mdiControlStrip.AutoScrollMargin);
31
Assert.Equal(Size.
Empty
, mdiControlStrip.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, mdiControlStrip.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, mdiControlStrip.DefaultMinimumSize);
112
Assert.Equal(Size.
Empty
, mdiControlStrip.MaximumSize);
115
Assert.Equal(Size.
Empty
, mdiControlStrip.MinimumSize);
System\Windows\Forms\MenuStripTests.cs (6)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
110
Assert.Equal(Size.
Empty
, control.MaximumSize);
113
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\MonthCalendarTests.cs (5)
66
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
67
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
2446
yield return new object[] { new RECT(0, 0, 0, 0), Size.
Empty
};
System\Windows\Forms\PaddingTests.cs (2)
25
Assert.Equal(Size.
Empty
, padding.Size);
76
Assert.Equal(Size.
Empty
, padding.Size);
System\Windows\Forms\PanelTests.cs (7)
27
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
96
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\PictureBoxTests.cs (4)
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
87
Assert.Equal(Size.
Empty
, control.MaximumSize);
88
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\PopupEventArgsTests.cs (2)
14
yield return new object[] { null, null, false, Size.
Empty
};
33
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ProgressBarTests.cs (4)
52
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
78
Assert.Equal(Size.
Empty
, control.MaximumSize);
80
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
67
SizeProperty = Size.
Empty
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
18
SelectedObject = Size.
Empty
System\Windows\Forms\PropertyGridTests.cs (7)
36
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
38
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
83
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
84
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
127
Assert.Equal(Size.
Empty
, control.MaximumSize);
128
Assert.Equal(Size.
Empty
, control.MinimumSize);
131
Assert.NotEqual(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\RadioButtonTests.cs (4)
58
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
93
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\RichTextBoxTests.cs (4)
67
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
68
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
99
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ScrollableControlTests.cs (14)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
45
Assert.Equal(Size.
Empty
, control.ClientSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultSize);
91
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
95
Assert.Equal(Size.
Empty
, control.PreferredSize);
105
Assert.Equal(Size.
Empty
, control.Size);
435
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
459
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
676
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
700
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
System\Windows\Forms\ScrollBarTests.cs (8)
40
Assert.Equal(Size.
Empty
, control.ClientSize);
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultSize);
79
Assert.Equal(Size.
Empty
, control.MaximumSize);
81
Assert.Equal(Size.
Empty
, control.MinimumSize);
84
Assert.Equal(Size.
Empty
, control.PreferredSize);
95
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\SplitterPanelTests.cs (9)
33
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
34
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
82
Assert.Equal(Size.
Empty
, control.MaximumSize);
83
Assert.Equal(Size.
Empty
, control.MinimumSize);
86
Assert.Equal(Size.
Empty
, control.PreferredSize);
645
Size = Size.
Empty
652
Assert.Equal(Size.
Empty
, control.Size);
659
Assert.Equal(Size.
Empty
, control.Size);
670
Size = Size.
Empty
System\Windows\Forms\SplitterTests.cs (4)
52
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
78
Assert.Equal(Size.
Empty
, control.MaximumSize);
79
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\StatusStripTests.cs (6)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
110
Assert.Equal(Size.
Empty
, control.MaximumSize);
112
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
151
yield return new object[] { TabAppearance.Buttons, Size.
Empty
, 0 };
152
yield return new object[] { TabAppearance.FlatButtons, Size.
Empty
, 1 };
153
yield return new object[] { TabAppearance.Normal, Size.
Empty
, 0 };
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (3)
139
yield return new object[] { TabAppearance.Buttons, Size.
Empty
, 0 };
140
yield return new object[] { TabAppearance.FlatButtons, Size.
Empty
, 1 };
141
yield return new object[] { TabAppearance.Normal, Size.
Empty
, 0 };
System\Windows\Forms\TabControlTests.cs (8)
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
77
Assert.Equal(Size.
Empty
, control.ItemSize);
83
Assert.Equal(Size.
Empty
, control.MaximumSize);
84
Assert.Equal(Size.
Empty
, control.MinimumSize);
1545
control.ItemSize = Size.
Empty
;
1576
Assert.Equal(Size.
Empty
, control.ItemSize);
1600
Assert.Equal(Size.
Empty
, control.ItemSize);
System\Windows\Forms\TableLayoutPanelTests.cs (7)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
100
Assert.Equal(Size.
Empty
, control.MaximumSize);
101
Assert.Equal(Size.
Empty
, control.MinimumSize);
104
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\TabPageTests.cs (18)
31
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
32
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
97
Assert.Equal(Size.
Empty
, control.MaximumSize);
98
Assert.Equal(Size.
Empty
, control.MinimumSize);
101
Assert.Equal(Size.
Empty
, control.PreferredSize);
140
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
141
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
171
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
172
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
206
Assert.Equal(Size.
Empty
, control.MaximumSize);
207
Assert.Equal(Size.
Empty
, control.MinimumSize);
210
Assert.Equal(Size.
Empty
, control.PreferredSize);
2425
Size = Size.
Empty
2432
Assert.Equal(Size.
Empty
, control.Size);
2439
Assert.Equal(Size.
Empty
, control.Size);
2450
Size = Size.
Empty
System\Windows\Forms\TextRendererTests.cs (16)
416
yield return new object[] { "string", null, Size.
Empty
};
420
yield return new object[] { "string", SystemFonts.MenuFont, Size.
Empty
};
440
yield return new object[] { "string", null, Size.
Empty
, TextFormatFlags.Default };
444
yield return new object[] { "string", SystemFonts.MenuFont, Size.
Empty
, TextFormatFlags.Default };
521
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont));
522
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400)));
523
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
524
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont));
525
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400)));
526
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
527
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont));
528
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400)));
529
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
530
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont));
531
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400)));
532
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\ToolStripButtonTests.cs (1)
1080
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ToolStripContentPanelTests.cs (11)
29
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
30
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
98
Assert.Equal(Size.
Empty
, control.PreferredSize);
1044
Size = Size.
Empty
1051
Assert.Equal(Size.
Empty
, control.Size);
1058
Assert.Equal(Size.
Empty
, control.Size);
1069
Size = Size.
Empty
System\Windows\Forms\ToolStripControlHostTests.cs (2)
2712
yield return new object[] { Size.
Empty
};
4117
Assert.Equal(Size.
Empty
, c.Size);
System\Windows\Forms\ToolStripDropDownTests.cs (6)
32
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
33
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
117
Assert.Equal(Size.
Empty
, control.MaximumSize);
119
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ToolStripItemTests.cs (1)
10300
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ToolStripPanelTests.cs (12)
28
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
30
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
47
Assert.Equal(Size.
Empty
, control.ClientSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
62
Assert.Equal(Size.
Empty
, control.DefaultSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
98
Assert.Equal(Size.
Empty
, control.PreferredSize);
109
Assert.Equal(Size.
Empty
, control.Size);
213
Assert.Equal(value != Size.
Empty
, panel.AutoScroll);
218
Assert.Equal(value != Size.
Empty
, panel.AutoScroll);
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
747
yield return new object[] { Size.
Empty
};
767
yield return new object[] { ToolStripLayoutStyle.Flow, Size.
Empty
, new Size(6, 23) };
773
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.
Empty
, new Size(6, 23) };
779
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.
Empty
, new Size(6, 23) };
785
yield return new object[] { ToolStripLayoutStyle.Table, Size.
Empty
, new Size(6, 23) };
791
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.
Empty
, new Size(23, 6) };
820
yield return new object[] { layoutStyle, Size.
Empty
};
866
yield return new object[] { ToolStripLayoutStyle.Flow, Size.
Empty
, new Size(91, 6) };
872
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.
Empty
, new Size(91, 6) };
878
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.
Empty
, new Size(52, 6) };
884
yield return new object[] { ToolStripLayoutStyle.Table, Size.
Empty
, new Size(91, 6) };
890
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.
Empty
, new Size(52, 6) };
System\Windows\Forms\ToolStripTests.cs (12)
32
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
33
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
128
Assert.Equal(Size.
Empty
, control.MaximumSize);
129
Assert.Equal(Size.
Empty
, control.MinimumSize);
190
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
191
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
221
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
222
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
283
Assert.Equal(Size.
Empty
, control.MaximumSize);
284
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\TrackBarRendererTests.cs (1)
92
size.Should().NotBe(Size.
Empty
);
System\Windows\Forms\TreeViewTests.cs (4)
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
91
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\UpDownBaseTests.cs (21)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
70
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
71
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
106
Assert.Equal(Size.
Empty
, control.MaximumSize);
107
Assert.Equal(Size.
Empty
, control.MinimumSize);
1086
yield return new object[] { Size.
Empty
, 120, 0 };
1130
yield return new object[] { Size.
Empty
, 120, 0 };
1581
yield return new object[] { Size.
Empty
};
1628
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), expectedWidth };
1629
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), expectedWidth };
1630
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), expectedWidth };
1631
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), expectedWidth };
1632
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), expectedWidth };
1633
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), expectedWidth };
1635
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), 20 };
1636
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), 30 };
1637
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), 31 };
1638
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), 30 };
1639
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), 40 };
System\Windows\Forms\UserControlTests.cs (7)
32
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
34
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
Assert.Equal(Size.
Empty
, control.MinimumSize);
102
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\VScrollBarTests.cs (4)
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
88
Assert.Equal(Size.
Empty
, control.MaximumSize);
90
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\WebBrowserTests.cs (18)
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
75
Assert.Equal(Size.
Empty
, control.MaximumSize);
76
Assert.Equal(Size.
Empty
, control.MinimumSize);
4495
yield return new object[] { Size.
Empty
, (IntPtr)(-1) };
4496
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0) };
4497
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2) };
4498
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2) };
4534
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero, false };
4535
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true };
4536
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true };
4537
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true };
4538
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, false };
4608
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero };
4609
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero };
4610
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero };
4611
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero };
4612
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
TextBoxBaseTests.cs (21)
4998
yield return new object[] { multiline, wordWrap, BorderStyle.Fixed3D, Size.
Empty
, new Size(4, s_preferredHeight) };
5004
yield return new object[] { multiline, wordWrap, BorderStyle.FixedSingle, Size.
Empty
, new Size(4, s_preferredHeight) };
5010
yield return new object[] { multiline, wordWrap, BorderStyle.None, Size.
Empty
, new Size(0, Control.DefaultFont.Height) };
5059
yield return new object[] { BorderStyle.Fixed3D, Size.
Empty
, 4, s_preferredHeight };
5065
yield return new object[] { BorderStyle.FixedSingle, Size.
Empty
, 4, s_preferredHeight };
5071
yield return new object[] { BorderStyle.None, Size.
Empty
, 0, Control.DefaultFont.Height };
5130
int width = TextRenderer.MeasureText(control.Text, control.Font, Size.
Empty
, TextFormatFlags.SingleLine).Width;
6942
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult };
6943
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult };
6944
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult };
6945
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult };
6987
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult, false, false };
6988
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false, true };
6989
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false, true };
6990
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false, true };
6991
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false, true };
7068
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult, false };
7069
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false };
7070
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false };
7071
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false };
7072
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false };
TextBoxTests.cs (4)
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
86
Assert.Equal(Size.
Empty
, control.MaximumSize);
88
Assert.Equal(Size.
Empty
, control.MinimumSize);
TrackBarTests.cs (4)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
81
Assert.Equal(Size.
Empty
, control.MaximumSize);
83
Assert.Equal(Size.
Empty
, control.MinimumSize);
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ScreenRecordService.cs (3)
197
if (offset != Size.
Empty
|| image.Size != frames[0].image.Size)
254
resultFrames.Add((frames[0].elapsed, frames[0].image, offset: Size.
Empty
));
319
resultFrames.Add((frames[i].elapsed, frames[i].image, Size.
Empty
));
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
798
this.Size = SD.Size.
Empty
;