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)
1594
protected virtual Size DefaultSize => Size.
Empty
;
2473
if (value == Size.
Empty
)
3742
get { return GetPreferredSize(Size.
Empty
); }
5193
if (MaximumSize != Size.
Empty
|| MinimumSize != Size.
Empty
)
9709
MinimumSize = Size.
Empty
;
9710
MaximumSize = Size.
Empty
;
9757
LayoutUtils.UnionSizes(Size.
Empty
, minSize), // make sure we don't go below 0.
9766
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)
1040
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)
55
private Size _largestDisplayedItemSize = Size.
Empty
;
2269
Size maxSize = Size.
Empty
;
2332
Size maxSize = Size.
Empty
;
2396
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;
2347
return Size.
Empty
;
2349
else if (_cachedTextSize == Size.
Empty
)
2811
_cachedTextSize = Size.
Empty
;
2990
_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)
685
Size borderSize = SizeFromClientSize(Size.
Empty
);
System\Windows\Forms\Layout\DefaultLayout.cs (3)
381
Size preferredSize = Size.
Empty
;
635
Size preferredSizeForDocking = Size.
Empty
;
1113
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
;
935
private void ResetAutoScrollMargin() => AutoScrollMargin = Size.
Empty
;
937
private void ResetAutoScrollMinSize() => AutoScrollMinSize = Size.
Empty
;
1131
private bool ShouldSerializeAutoScrollMargin() => !AutoScrollMargin.Equals(Size.
Empty
);
1137
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)
24
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
25
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
98
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
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)
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
90
Assert.Equal(Size.
Empty
, control.MaximumSize);
91
Assert.Equal(Size.
Empty
, control.MinimumSize);
156
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
157
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
184
Assert.Equal(Size.
Empty
, control.MaximumSize);
185
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ButtonBaseTests.cs (5)
53
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
88
Assert.Equal(Size.
Empty
, control.MaximumSize);
89
Assert.Equal(Size.
Empty
, control.MinimumSize);
4997
yield return new object[] { flatStyle, Size.
Empty
};
System\Windows\Forms\ButtonTests.cs (30)
55
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
91
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
596
Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.
Empty
));
601
Assert.Equal(new Size(75, 24), control.GetPreferredSize(Size.
Empty
));
697
Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
702
Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
952
Assert.Equal(oldSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
957
Assert.Equal(newSize + new Size(14, 9), control.GetPreferredSize(Size.
Empty
));
1167
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(14, 9) };
1180
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1216
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(18, 15) };
1229
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1266
yield return new object[] { AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(18, 15) };
1279
yield return new object[] { AutoSizeMode.GrowOnly, Size.
Empty
, new Size(18, 15) };
1317
yield return new object[] { Size.
Empty
};
1376
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(8, 8) };
1389
yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(6, 6) };
1402
yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(6, 6) };
1417
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1454
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(12, 14) };
1467
yield return new object[] { FlatStyle.Popup, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1480
yield return new object[] { FlatStyle.Standard, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1495
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(75, 23) };
1533
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(12, 14) };
1546
yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(12, 14) };
1561
yield return new object[] { flatStyle, AutoSizeMode.GrowAndShrink, Size.
Empty
, new Size(10, 12) };
1574
yield return new object[] { flatStyle, AutoSizeMode.GrowOnly, Size.
Empty
, new Size(10, 12) };
1613
yield return new object[] { Size.
Empty
};
System\Windows\Forms\CheckBoxTests.cs (4)
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);
System\Windows\Forms\ComboBoxTests.cs (4)
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
102
Assert.Equal(Size.
Empty
, control.MaximumSize);
103
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ContainerControlTests.cs (10)
29
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
31
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
49
Assert.Equal(Size.
Empty
, control.ClientSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
64
Assert.Equal(Size.
Empty
, control.DefaultSize);
96
Assert.Equal(Size.
Empty
, control.MaximumSize);
97
Assert.Equal(Size.
Empty
, control.MinimumSize);
100
Assert.Equal(Size.
Empty
, control.PreferredSize);
110
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\ControlTests.cs (34)
36
Assert.Equal(Size.
Empty
, control.ClientSize);
48
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
49
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
51
Assert.Equal(Size.
Empty
, control.DefaultSize);
74
Assert.Equal(Size.
Empty
, control.MaximumSize);
75
Assert.Equal(Size.
Empty
, control.MinimumSize);
78
Assert.Equal(Size.
Empty
, control.PreferredSize);
88
Assert.Equal(Size.
Empty
, control.Size);
125
Assert.Equal(Size.
Empty
, control.ClientSize);
137
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
138
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
140
Assert.Equal(Size.
Empty
, control.DefaultSize);
163
Assert.Equal(Size.
Empty
, control.MaximumSize);
164
Assert.Equal(Size.
Empty
, control.MinimumSize);
167
Assert.Equal(Size.
Empty
, control.PreferredSize);
177
Assert.Equal(Size.
Empty
, control.Size);
233
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
234
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
236
Assert.Equal(Size.
Empty
, control.DefaultSize);
259
Assert.Equal(Size.
Empty
, control.MaximumSize);
260
Assert.Equal(Size.
Empty
, control.MinimumSize);
318
Assert.Equal(Size.
Empty
, control.ClientSize);
329
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
330
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
332
Assert.Equal(Size.
Empty
, control.DefaultSize);
355
Assert.Equal(Size.
Empty
, control.MaximumSize);
356
Assert.Equal(Size.
Empty
, control.MinimumSize);
359
Assert.Equal(Size.
Empty
, control.PreferredSize);
369
Assert.Equal(Size.
Empty
, control.Size);
425
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
426
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
428
Assert.Equal(Size.
Empty
, control.DefaultSize);
451
Assert.Equal(Size.
Empty
, control.MaximumSize);
452
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ControlTests.Methods.cs (100)
2316
yield return new object[] { Size.
Empty
};
2328
Assert.Equal(Size.
Empty
, control.GetPreferredSize(proposedSize));
2332
Assert.Equal(Size.
Empty
, control.GetPreferredSize(proposedSize));
2354
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), Size.
Empty
};
2355
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), new Size(10, 20) };
2356
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), new Size(30, 40) };
2357
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), new Size(31, 40) };
2358
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), new Size(30, 41) };
2359
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), new Size(40, 50) };
2360
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), Size.
Empty
};
2361
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), Size.
Empty
};
2362
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), Size.
Empty
};
2363
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), Size.
Empty
};
2364
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), Size.
Empty
};
7422
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, 30, 40, 1 };
7423
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, 30, 40, 1 };
7424
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, 30, 40, 0 };
7425
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, 31, 40, 0 };
7426
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, 30, 41, 0 };
7427
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, 40, 50, 0 };
7428
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, 20, 10, 1 };
7429
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, 30, 40, 1 };
7430
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, 30, 40, 1 };
7431
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, 30, 40, 1 };
7432
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, 30, 40, 1 };
8209
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8210
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8211
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 0 };
8212
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 31, 40, 0 };
8213
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 41, 0 };
8214
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 40, 50, 0 };
8215
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 20, 10, 1 };
8216
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8217
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8218
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
8219
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.All, 1, 2, 30, 40, 1 };
9029
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9030
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9031
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, specified, 30, 40, 1, 0 };
9032
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, specified, 31, 40, 1, 0 };
9033
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, specified, 30, 41, 1, 0 };
9034
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, specified, 40, 50, 1, 0 };
9035
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, specified, 20, 10, 1, 1 };
9036
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9037
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9038
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
9039
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, specified, 30, 40, 1, 1 };
10096
yield return new object[] { Size.
Empty
};
10339
Assert.Equal(Size.
Empty
, control.ClientSize);
10342
Assert.Equal(Size.
Empty
, control.Size);
10358
Assert.Equal(Size.
Empty
, control.ClientSize);
10361
Assert.Equal(Size.
Empty
, control.Size);
10513
Assert.Equal(Size.
Empty
, control.ClientSize);
10516
Assert.Equal(Size.
Empty
, control.Size);
10532
Assert.Equal(Size.
Empty
, control.ClientSize);
10535
Assert.Equal(Size.
Empty
, control.Size);
10605
Assert.Equal(Size.
Empty
, control.ClientSize);
10608
Assert.Equal(Size.
Empty
, control.Size);
10624
Assert.Equal(Size.
Empty
, control.ClientSize);
10627
Assert.Equal(Size.
Empty
, control.Size);
10696
Assert.Equal(Size.
Empty
, control.ClientSize);
10699
Assert.Equal(Size.
Empty
, control.Size);
10718
Assert.Equal(Size.
Empty
, control.ClientSize);
10721
Assert.Equal(Size.
Empty
, control.Size);
10992
yield return new object[] { Size.
Empty
, Size.
Empty
, 1, 2, 30, 40, 1 };
10993
yield return new object[] { new Size(10, 20), Size.
Empty
, 1, 2, 30, 40, 1 };
10994
yield return new object[] { new Size(30, 40), Size.
Empty
, 1, 2, 30, 40, 0 };
10995
yield return new object[] { new Size(31, 40), Size.
Empty
, 1, 2, 30, 40, 1 };
10996
yield return new object[] { new Size(30, 41), Size.
Empty
, 1, 2, 30, 40, 1 };
10997
yield return new object[] { new Size(40, 50), Size.
Empty
, 1, 2, 30, 40, 1 };
10998
yield return new object[] { Size.
Empty
, new Size(20, 10), 1, 2, 30, 40, 1 };
10999
yield return new object[] { Size.
Empty
, new Size(30, 40), 1, 2, 30, 40, 1 };
11000
yield return new object[] { Size.
Empty
, new Size(31, 40), 1, 2, 30, 40, 1 };
11001
yield return new object[] { Size.
Empty
, new Size(30, 41), 1, 2, 30, 40, 1 };
11002
yield return new object[] { Size.
Empty
, new Size(40, 50), 1, 2, 30, 40, 1 };
12482
yield return new object[] { Size.
Empty
, (IntPtr)(-1) };
12483
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0) };
12484
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2) };
12485
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2) };
12521
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero, false };
12522
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true };
12523
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true };
12524
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true };
12525
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, true };
12595
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero };
12596
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero };
12597
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero };
12598
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero };
12599
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
System\Windows\Forms\ControlTests.Properties.cs (85)
3284
yield return new object[] { new Control(), Size.
Empty
};
3285
yield return new object[] { new NonZeroWidthBorderedControl(), Size.
Empty
};
3286
yield return new object[] { new NonZeroHeightBorderedControl(), Size.
Empty
};
5767
yield return new object[] { Size.
Empty
, Size.
Empty
, 40, 0, 40, 1 };
5768
yield return new object[] { new Size(10, 20), Size.
Empty
, 40, 10, 40, 1 };
5769
yield return new object[] { new Size(30, 40), Size.
Empty
, 40, 30, 40, 0 };
5770
yield return new object[] { new Size(31, 40), Size.
Empty
, 40, 31, 40, 0 };
5771
yield return new object[] { new Size(30, 41), Size.
Empty
, 40, 30, 41, 0 };
5772
yield return new object[] { new Size(40, 50), Size.
Empty
, 40, 40, 50, 0 };
5773
yield return new object[] { Size.
Empty
, new Size(20, 10), 40, 0, 10, 1 };
5774
yield return new object[] { Size.
Empty
, new Size(30, 40), 40, 0, 40, 1 };
5775
yield return new object[] { Size.
Empty
, new Size(31, 40), 40, 0, 40, 1 };
5776
yield return new object[] { Size.
Empty
, new Size(30, 41), 40, 0, 40, 1 };
5777
yield return new object[] { Size.
Empty
, new Size(40, 50), 40, 0, 40, 1 };
7881
yield return new object[] { new Control(), Size.
Empty
};
7911
yield return new object[] { Size.
Empty
};
7935
Assert.Equal(Size.
Empty
, control.Size);
7942
Assert.Equal(Size.
Empty
, control.Size);
7960
Assert.Equal(Size.
Empty
, control.Size);
7967
Assert.Equal(Size.
Empty
, control.Size);
7974
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
8083
yield return new object[] { Size.
Empty
, 0 };
8120
Assert.Equal(Size.
Empty
, control.Size);
8128
Assert.Equal(Size.
Empty
, control.Size);
8138
yield return new object[] { Size.
Empty
, 0 };
8176
Assert.Equal(Size.
Empty
, control.Size);
8185
Assert.Equal(Size.
Empty
, control.Size);
8211
Assert.Equal(Size.
Empty
, control.Size);
8221
Assert.Equal(Size.
Empty
, control.Size);
8249
Assert.Equal(Size.
Empty
, control.Size);
8259
Assert.Equal(Size.
Empty
, control.Size);
8342
Assert.Equal(Size.
Empty
, control.Size);
8357
Assert.Equal(Size.
Empty
, control.Size);
8410
Assert.Equal(Size.
Empty
, control.Size);
8425
Assert.Equal(Size.
Empty
, control.Size);
8460
Assert.Equal(Size.
Empty
, control.MaximumSize);
8484
Assert.Equal(Size.
Empty
, control.MaximumSize);
8490
yield return new object[] { new Control(), Size.
Empty
};
8520
yield return new object[] { Size.
Empty
, Size.
Empty
, 0 };
8525
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0 };
8564
yield return new object[] { Size.
Empty
, new Size(1, 2), 0 };
8611
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
8727
yield return new object[] { Size.
Empty
, Size.
Empty
, 0, 0 };
8732
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0, 1 };
8788
yield return new object[] { Size.
Empty
, new Size(1, 2), 0, 1 };
8852
yield return new object[] { Size.
Empty
, Size.
Empty
, 0 };
8857
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0 };
8909
yield return new object[] { Size.
Empty
, new Size(1, 2), 0 };
8969
yield return new object[] { new Size(2, 3), Size.
Empty
, new Size(2, 3), 0 };
9035
yield return new object[] { Size.
Empty
, Size.
Empty
, 0, 0 };
9040
yield return new object[] { new Size(-1, -2), Size.
Empty
, 0, 1 };
9123
yield return new object[] { Size.
Empty
, new Size(1, 2), 0, 1 };
9230
Assert.Equal(Size.
Empty
, control.MinimumSize);
9254
Assert.Equal(Size.
Empty
, control.MinimumSize);
11151
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), 30, 40, 1 };
11152
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), 30, 40, 1 };
11153
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), 30, 40, 0 };
11154
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), 31, 40, 0 };
11155
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), 30, 41, 0 };
11156
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), 40, 50, 0 };
11157
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), 20, 10, 1 };
11158
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), 30, 40, 1 };
11159
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), 30, 40, 1 };
11160
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), 30, 40, 1 };
11161
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), 30, 40, 1 };
11770
Assert.Equal(Size.
Empty
, control.Size);
11794
Assert.Equal(Size.
Empty
, control.Size);
13186
yield return new object[] { Size.
Empty
, Size.
Empty
, 30, 30, 0, 1 };
13187
yield return new object[] { new Size(10, 20), Size.
Empty
, 30, 30, 20, 1 };
13188
yield return new object[] { new Size(30, 40), Size.
Empty
, 30, 30, 40, 0 };
13189
yield return new object[] { new Size(31, 40), Size.
Empty
, 30, 31, 40, 0 };
13190
yield return new object[] { new Size(30, 41), Size.
Empty
, 30, 30, 41, 0 };
13191
yield return new object[] { new Size(40, 50), Size.
Empty
, 30, 40, 50, 0 };
13192
yield return new object[] { Size.
Empty
, new Size(20, 10), 30, 20, 0, 1 };
13193
yield return new object[] { Size.
Empty
, new Size(30, 40), 30, 30, 0, 1 };
13194
yield return new object[] { Size.
Empty
, new Size(31, 40), 30, 30, 0, 1 };
13195
yield return new object[] { Size.
Empty
, new Size(30, 41), 30, 30, 0, 1 };
13196
yield return new object[] { Size.
Empty
, new Size(40, 50), 30, 30, 0, 1 };
System\Windows\Forms\DataGridViewCellTests.cs (5)
4830
Assert.Equal(new Size(-1, -1), cell.GetPreferredSize(null, null, -1, Size.
Empty
));
5328
Assert.Equal(Size.
Empty
, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default));
5342
Assert.NotEqual(Size.
Empty
, DataGridViewCell.MeasureTextPreferredSize(graphics, text, SystemFonts.DefaultFont, 0.2f, flags));
5384
Assert.Equal(Size.
Empty
, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, TextFormatFlags.Default));
5398
Assert.NotEqual(Size.
Empty
, DataGridViewCell.MeasureTextSize(graphics, text, SystemFonts.DefaultFont, flags));
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
59
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
90
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\DateTimePickerTests.cs (4)
63
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
64
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
94
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (6)
37
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
38
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
71
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
72
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
121
Assert.Equal(Size.
Empty
, control.MaximumSize);
123
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (7)
25
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
26
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
97
Assert.Equal(Size.
Empty
, control.MaximumSize);
98
Assert.Equal(Size.
Empty
, control.MinimumSize);
102
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\DomainUpDownTests.cs (6)
38
_sub.AutoScrollMargin.Should().Be(Size.
Empty
);
40
_sub.AutoScrollMinSize.Should().Be(Size.
Empty
);
81
_sub.DefaultMaximumSize.Should().Be(Size.
Empty
);
82
_sub.DefaultMinimumSize.Should().Be(Size.
Empty
);
119
_sub.MaximumSize.Should().Be(Size.
Empty
);
120
_sub.MinimumSize.Should().Be(Size.
Empty
);
System\Windows\Forms\FlowLayoutPanelTests.cs (7)
24
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
25
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
90
Assert.Equal(Size.
Empty
, control.MaximumSize);
91
Assert.Equal(Size.
Empty
, control.MinimumSize);
94
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\FormTests.cs (6)
35
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
36
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
70
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
71
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
123
Assert.Equal(Size.
Empty
, control.MaximumSize);
125
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\GroupBoxTests.cs (4)
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
78
Assert.Equal(Size.
Empty
, control.MaximumSize);
79
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\HScrollBarTests.cs (4)
55
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
56
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
87
Assert.Equal(Size.
Empty
, control.MaximumSize);
89
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ImageListTests.cs (1)
402
Assert.Throws<ArgumentException>("value", () => list.ImageSize = Size.
Empty
);
System\Windows\Forms\LabelTests.cs (4)
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
83
Assert.Equal(Size.
Empty
, control.MaximumSize);
84
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\Layout\FlowLayoutTests.cs (8)
57
Size = Size.
Empty
62
Size = Size.
Empty
118
Size = Size.
Empty
123
Size = Size.
Empty
179
Size = Size.
Empty
184
Size = Size.
Empty
240
Size = Size.
Empty
245
Size = Size.
Empty
System\Windows\Forms\ListBoxTests.cs (5)
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
94
Assert.Equal(Size.
Empty
, control.MaximumSize);
95
Assert.Equal(Size.
Empty
, control.MinimumSize);
4790
yield return new object[] { borderStyle, Size.
Empty
};
System\Windows\Forms\ListControlTests.cs (8)
40
Assert.Equal(Size.
Empty
, control.ClientSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultSize);
84
Assert.Equal(Size.
Empty
, control.MaximumSize);
85
Assert.Equal(Size.
Empty
, control.MinimumSize);
89
Assert.Equal(Size.
Empty
, control.PreferredSize);
100
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\ListViewTests.cs (5)
66
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
67
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
110
Assert.Equal(Size.
Empty
, control.MaximumSize);
111
Assert.Equal(Size.
Empty
, control.MinimumSize);
141
Assert.Equal(Size.
Empty
, control.TileSize);
System\Windows\Forms\MdiClientTests.cs (15)
36
Assert.Equal(Size.
Empty
, control.ClientSize);
62
Assert.Equal(Size.
Empty
, control.MaximumSize);
65
Assert.Equal(Size.
Empty
, control.MinimumSize);
68
Assert.Equal(Size.
Empty
, control.PreferredSize);
77
Assert.Equal(Size.
Empty
, control.Size);
773
Assert.Equal(Size.
Empty
, control.ClientSize);
776
Assert.Equal(Size.
Empty
, control.Size);
800
Assert.Equal(Size.
Empty
, control.ClientSize);
803
Assert.Equal(Size.
Empty
, control.Size);
925
Assert.Equal(Size.
Empty
, control.ClientSize);
928
Assert.Equal(Size.
Empty
, control.Size);
952
Assert.Equal(Size.
Empty
, control.ClientSize);
955
Assert.Equal(Size.
Empty
, control.Size);
1165
Assert.Equal(Size.
Empty
, control.Size);
1189
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\MdiControlStripTests.cs (6)
28
Assert.Equal(Size.
Empty
, mdiControlStrip.AutoScrollMargin);
29
Assert.Equal(Size.
Empty
, mdiControlStrip.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, mdiControlStrip.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, mdiControlStrip.DefaultMinimumSize);
110
Assert.Equal(Size.
Empty
, mdiControlStrip.MaximumSize);
113
Assert.Equal(Size.
Empty
, mdiControlStrip.MinimumSize);
System\Windows\Forms\MenuStripTests.cs (6)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
108
Assert.Equal(Size.
Empty
, control.MaximumSize);
111
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\MonthCalendarTests.cs (5)
64
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
65
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
96
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
Assert.Equal(Size.
Empty
, control.MinimumSize);
2444
yield return new object[] { new RECT(0, 0, 0, 0), Size.
Empty
};
System\Windows\Forms\PaddingTests.cs (2)
23
Assert.Equal(Size.
Empty
, padding.Size);
74
Assert.Equal(Size.
Empty
, padding.Size);
System\Windows\Forms\PanelTests.cs (7)
25
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
26
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
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);
94
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\PictureBoxTests.cs (4)
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
85
Assert.Equal(Size.
Empty
, control.MaximumSize);
86
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\PopupEventArgsTests.cs (2)
12
yield return new object[] { null, null, false, Size.
Empty
};
31
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ProgressBarTests.cs (4)
50
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
51
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
76
Assert.Equal(Size.
Empty
, control.MaximumSize);
78
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
65
SizeProperty = Size.
Empty
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
16
SelectedObject = Size.
Empty
System\Windows\Forms\PropertyGridTests.cs (7)
34
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
36
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
81
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
82
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
125
Assert.Equal(Size.
Empty
, control.MaximumSize);
126
Assert.Equal(Size.
Empty
, control.MinimumSize);
129
Assert.NotEqual(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\RadioButtonTests.cs (4)
56
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
91
Assert.Equal(Size.
Empty
, control.MaximumSize);
92
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\RichTextBoxTests.cs (4)
65
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
66
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
97
Assert.Equal(Size.
Empty
, control.MaximumSize);
99
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ScrollableControlTests.cs (14)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
43
Assert.Equal(Size.
Empty
, control.ClientSize);
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
57
Assert.Equal(Size.
Empty
, control.DefaultSize);
89
Assert.Equal(Size.
Empty
, control.MaximumSize);
90
Assert.Equal(Size.
Empty
, control.MinimumSize);
93
Assert.Equal(Size.
Empty
, control.PreferredSize);
103
Assert.Equal(Size.
Empty
, control.Size);
433
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
457
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
674
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
698
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
System\Windows\Forms\ScrollBarTests.cs (8)
38
Assert.Equal(Size.
Empty
, control.ClientSize);
49
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
50
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultSize);
77
Assert.Equal(Size.
Empty
, control.MaximumSize);
79
Assert.Equal(Size.
Empty
, control.MinimumSize);
82
Assert.Equal(Size.
Empty
, control.PreferredSize);
93
Assert.Equal(Size.
Empty
, control.Size);
System\Windows\Forms\SplitterPanelTests.cs (9)
31
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
32
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
80
Assert.Equal(Size.
Empty
, control.MaximumSize);
81
Assert.Equal(Size.
Empty
, control.MinimumSize);
84
Assert.Equal(Size.
Empty
, control.PreferredSize);
643
Size = Size.
Empty
650
Assert.Equal(Size.
Empty
, control.Size);
657
Assert.Equal(Size.
Empty
, control.Size);
668
Size = Size.
Empty
System\Windows\Forms\SplitterTests.cs (4)
50
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
51
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
76
Assert.Equal(Size.
Empty
, control.MaximumSize);
77
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\StatusStripTests.cs (6)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
108
Assert.Equal(Size.
Empty
, control.MaximumSize);
110
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
149
yield return new object[] { TabAppearance.Buttons, Size.
Empty
, 0 };
150
yield return new object[] { TabAppearance.FlatButtons, Size.
Empty
, 1 };
151
yield return new object[] { TabAppearance.Normal, Size.
Empty
, 0 };
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (3)
137
yield return new object[] { TabAppearance.Buttons, Size.
Empty
, 0 };
138
yield return new object[] { TabAppearance.FlatButtons, Size.
Empty
, 1 };
139
yield return new object[] { TabAppearance.Normal, Size.
Empty
, 0 };
System\Windows\Forms\TabControlTests.cs (8)
52
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
75
Assert.Equal(Size.
Empty
, control.ItemSize);
81
Assert.Equal(Size.
Empty
, control.MaximumSize);
82
Assert.Equal(Size.
Empty
, control.MinimumSize);
1543
control.ItemSize = Size.
Empty
;
1574
Assert.Equal(Size.
Empty
, control.ItemSize);
1598
Assert.Equal(Size.
Empty
, control.ItemSize);
System\Windows\Forms\TableLayoutPanelTests.cs (7)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
27
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
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\TabPageTests.cs (18)
29
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
30
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
60
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
95
Assert.Equal(Size.
Empty
, control.MaximumSize);
96
Assert.Equal(Size.
Empty
, control.MinimumSize);
99
Assert.Equal(Size.
Empty
, control.PreferredSize);
138
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
139
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
169
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
170
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
204
Assert.Equal(Size.
Empty
, control.MaximumSize);
205
Assert.Equal(Size.
Empty
, control.MinimumSize);
208
Assert.Equal(Size.
Empty
, control.PreferredSize);
2423
Size = Size.
Empty
2430
Assert.Equal(Size.
Empty
, control.Size);
2437
Assert.Equal(Size.
Empty
, control.Size);
2448
Size = Size.
Empty
System\Windows\Forms\TextRendererTests.cs (16)
414
yield return new object[] { "string", null, Size.
Empty
};
418
yield return new object[] { "string", SystemFonts.MenuFont, Size.
Empty
};
438
yield return new object[] { "string", null, Size.
Empty
, TextFormatFlags.Default };
442
yield return new object[] { "string", SystemFonts.MenuFont, Size.
Empty
, TextFormatFlags.Default };
519
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont));
520
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400)));
521
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
522
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont));
523
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400)));
524
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
525
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont));
526
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400)));
527
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
528
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont));
529
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400)));
530
Assert.Equal(Size.
Empty
, TextRenderer.MeasureText(graphics, text.AsSpan(), SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\ToolStripButtonTests.cs (1)
1078
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ToolStripContentPanelTests.cs (11)
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);
1042
Size = Size.
Empty
1049
Assert.Equal(Size.
Empty
, control.Size);
1056
Assert.Equal(Size.
Empty
, control.Size);
1067
Size = Size.
Empty
System\Windows\Forms\ToolStripControlHostTests.cs (2)
2710
yield return new object[] { Size.
Empty
};
4115
Assert.Equal(Size.
Empty
, c.Size);
System\Windows\Forms\ToolStripDropDownTests.cs (6)
30
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
31
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
115
Assert.Equal(Size.
Empty
, control.MaximumSize);
117
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\ToolStripItemTests.cs (1)
10298
yield return new object[] { Size.
Empty
};
System\Windows\Forms\ToolStripPanelTests.cs (12)
26
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
28
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
45
Assert.Equal(Size.
Empty
, control.ClientSize);
57
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
58
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
60
Assert.Equal(Size.
Empty
, control.DefaultSize);
92
Assert.Equal(Size.
Empty
, control.MaximumSize);
93
Assert.Equal(Size.
Empty
, control.MinimumSize);
96
Assert.Equal(Size.
Empty
, control.PreferredSize);
107
Assert.Equal(Size.
Empty
, control.Size);
211
Assert.Equal(value != Size.
Empty
, panel.AutoScroll);
216
Assert.Equal(value != Size.
Empty
, panel.AutoScroll);
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
745
yield return new object[] { Size.
Empty
};
765
yield return new object[] { ToolStripLayoutStyle.Flow, Size.
Empty
, new Size(6, 23) };
771
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.
Empty
, new Size(6, 23) };
777
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.
Empty
, new Size(6, 23) };
783
yield return new object[] { ToolStripLayoutStyle.Table, Size.
Empty
, new Size(6, 23) };
789
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.
Empty
, new Size(23, 6) };
818
yield return new object[] { layoutStyle, Size.
Empty
};
864
yield return new object[] { ToolStripLayoutStyle.Flow, Size.
Empty
, new Size(91, 6) };
870
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, Size.
Empty
, new Size(91, 6) };
876
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, Size.
Empty
, new Size(52, 6) };
882
yield return new object[] { ToolStripLayoutStyle.Table, Size.
Empty
, new Size(91, 6) };
888
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, Size.
Empty
, new Size(52, 6) };
System\Windows\Forms\ToolStripTests.cs (12)
30
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
31
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
63
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
126
Assert.Equal(Size.
Empty
, control.MaximumSize);
127
Assert.Equal(Size.
Empty
, control.MinimumSize);
188
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
189
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
219
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
220
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
281
Assert.Equal(Size.
Empty
, control.MaximumSize);
282
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\TrackBarRendererTests.cs (1)
94
size.Should().NotBe(Size.
Empty
);
System\Windows\Forms\TreeViewTests.cs (4)
52
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
53
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
89
Assert.Equal(Size.
Empty
, control.MaximumSize);
90
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\UpDownBaseTests.cs (21)
24
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
26
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
68
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
69
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
104
Assert.Equal(Size.
Empty
, control.MaximumSize);
105
Assert.Equal(Size.
Empty
, control.MinimumSize);
1084
yield return new object[] { Size.
Empty
, 120, 0 };
1128
yield return new object[] { Size.
Empty
, 120, 0 };
1579
yield return new object[] { Size.
Empty
};
1626
yield return new object[] { Size.
Empty
, Size.
Empty
, new Size(30, 40), expectedWidth };
1627
yield return new object[] { new Size(10, 20), Size.
Empty
, new Size(30, 40), expectedWidth };
1628
yield return new object[] { new Size(30, 40), Size.
Empty
, new Size(30, 40), expectedWidth };
1629
yield return new object[] { new Size(31, 40), Size.
Empty
, new Size(30, 40), expectedWidth };
1630
yield return new object[] { new Size(30, 41), Size.
Empty
, new Size(30, 40), expectedWidth };
1631
yield return new object[] { new Size(40, 50), Size.
Empty
, new Size(30, 40), expectedWidth };
1633
yield return new object[] { Size.
Empty
, new Size(20, 10), new Size(30, 40), 20 };
1634
yield return new object[] { Size.
Empty
, new Size(30, 40), new Size(30, 40), 30 };
1635
yield return new object[] { Size.
Empty
, new Size(31, 40), new Size(30, 40), 31 };
1636
yield return new object[] { Size.
Empty
, new Size(30, 41), new Size(30, 40), 30 };
1637
yield return new object[] { Size.
Empty
, new Size(40, 50), new Size(30, 40), 40 };
System\Windows\Forms\UserControlTests.cs (7)
30
Assert.Equal(Size.
Empty
, control.AutoScrollMargin);
32
Assert.Equal(Size.
Empty
, control.AutoScrollMinSize);
61
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
62
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
96
Assert.Equal(Size.
Empty
, control.MaximumSize);
97
Assert.Equal(Size.
Empty
, control.MinimumSize);
100
Assert.Equal(Size.
Empty
, control.PreferredSize);
System\Windows\Forms\VScrollBarTests.cs (4)
54
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
55
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
86
Assert.Equal(Size.
Empty
, control.MaximumSize);
88
Assert.Equal(Size.
Empty
, control.MinimumSize);
System\Windows\Forms\WebBrowserTests.cs (18)
49
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
50
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
73
Assert.Equal(Size.
Empty
, control.MaximumSize);
74
Assert.Equal(Size.
Empty
, control.MinimumSize);
4493
yield return new object[] { Size.
Empty
, (IntPtr)(-1) };
4494
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0) };
4495
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2) };
4496
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2) };
4532
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero, false };
4533
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true };
4534
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true };
4535
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true };
4536
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, false };
4606
yield return new object[] { Size.
Empty
, (IntPtr)(-1), IntPtr.Zero };
4607
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(0, 0), IntPtr.Zero };
4608
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(1, 2), IntPtr.Zero };
4609
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero };
4610
yield return new object[] { Size.
Empty
, PARAM.FromLowHigh(-1, -2), IntPtr.Zero };
TextBoxBaseTests.cs (21)
4996
yield return new object[] { multiline, wordWrap, BorderStyle.Fixed3D, Size.
Empty
, new Size(4, s_preferredHeight) };
5002
yield return new object[] { multiline, wordWrap, BorderStyle.FixedSingle, Size.
Empty
, new Size(4, s_preferredHeight) };
5008
yield return new object[] { multiline, wordWrap, BorderStyle.None, Size.
Empty
, new Size(0, Control.DefaultFont.Height) };
5057
yield return new object[] { BorderStyle.Fixed3D, Size.
Empty
, 4, s_preferredHeight };
5063
yield return new object[] { BorderStyle.FixedSingle, Size.
Empty
, 4, s_preferredHeight };
5069
yield return new object[] { BorderStyle.None, Size.
Empty
, 0, Control.DefaultFont.Height };
5128
int width = TextRenderer.MeasureText(control.Text, control.Font, Size.
Empty
, TextFormatFlags.SingleLine).Width;
6940
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult };
6941
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult };
6942
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult };
6943
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult };
6985
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult, false, false };
6986
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false, true };
6987
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false, true };
6988
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false, true };
6989
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false, true };
7066
yield return new object[] { Size.
Empty
, shortcutsEnabled, (IntPtr)(-1), expectedResult, false };
7067
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(0, 0), expectedResult, false };
7068
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(1, 2), expectedResult, false };
7069
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(p.X, p.Y), expectedResult, false };
7070
yield return new object[] { Size.
Empty
, shortcutsEnabled, PARAM.FromLowHigh(-1, -2), expectedResult, false };
TextBoxTests.cs (4)
58
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
59
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
84
Assert.Equal(Size.
Empty
, control.MaximumSize);
86
Assert.Equal(Size.
Empty
, control.MinimumSize);
TrackBarTests.cs (4)
51
Assert.Equal(Size.
Empty
, control.DefaultMaximumSize);
52
Assert.Equal(Size.
Empty
, control.DefaultMinimumSize);
79
Assert.Equal(Size.
Empty
, control.MaximumSize);
81
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)
819
this.Size = SD.Size.
Empty
;