1 write to _sub
System.Windows.Forms.Tests (1)
System\Windows\Forms\DomainUpDownTests.cs (1)
20_sub = new();
550 references to _sub
System.Windows.Forms.Tests (550)
System\Windows\Forms\DomainUpDownTests.cs (550)
27_sub.Items.Clear(); 28_sub.Dispose(); 34_sub.ActiveControl.Should().BeNull(); 35_sub.AllowDrop.Should().BeFalse(); 36_sub.Anchor.Should().Be(AnchorStyles.Top | AnchorStyles.Left); 37_sub.AutoScroll.Should().BeFalse(); 38_sub.AutoScaleDimensions.Should().Be(SizeF.Empty); 39_sub.AutoScaleFactor.Should().Be(new SizeF(1, 1)); 40_sub.AutoScrollMargin.Should().Be(Size.Empty); 41_sub.AutoScaleMode.Should().Be(AutoScaleMode.Inherit); 42_sub.AutoScrollMinSize.Should().Be(Size.Empty); 43_sub.AutoScrollPosition.Should().Be(Point.Empty); 44_sub.AutoSize.Should().BeFalse(); 45_sub.BackColor.Should().Be(SystemColors.Window); 46_sub.BackgroundImage.Should().BeNull(); 47_sub.BackgroundImageLayout.Should().Be(ImageLayout.Tile); 48_sub.BindingContext.Should().NotBeNull(); 49_sub.BorderStyle.Should().Be(BorderStyle.Fixed3D); 50_sub.Bottom.Should().Be(_sub.PreferredHeight); 51_sub.Bounds.Should().Be(new Rectangle(0, 0, 120, _sub.PreferredHeight)); 52_sub.CanEnableIme.Should().BeFalse(); 53_sub.CanFocus.Should().BeFalse(); 54_sub.CanRaiseEvents.Should().BeTrue(); 55_sub.CausesValidation.Should().BeTrue(); 56_sub.ChangingText.Should().BeFalse(); 59_sub.ClientRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 60_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 61_sub.ClientSize.Should().Be(new Size(120, Control.DefaultFont.Height + 7)); 62_sub.PreferredSize.Should().Be(new Size(16, _sub.PreferredHeight)); 66_sub.ClientRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3)); 67_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3)); 68_sub.ClientSize.Should().Be(new Size(116, Control.DefaultFont.Height + 3)); 69_sub.PreferredSize.Should().Be(new Size(20, _sub.PreferredHeight)); 72_sub.Container.Should().BeNull(); 73_sub.ContainsFocus.Should().BeFalse(); 74_sub.ContextMenuStrip.Should().BeNull(); 75_sub.Controls.Should().NotBeNull(); 76_sub.Controls.Should().BeSameAs(_sub.Controls); 77_sub.Created.Should().BeFalse(); 78_sub.CurrentAutoScaleDimensions.Should().Be(SizeF.Empty); 79_sub.Cursor.Should().Be(Cursors.Default); 80_sub.DefaultCursor.Should().Be(Cursors.Default); 81_sub.DefaultImeMode.Should().Be(ImeMode.Inherit); 82_sub.DefaultMargin.Should().Be(new Padding(3)); 83_sub.DefaultMaximumSize.Should().Be(Size.Empty); 84_sub.DefaultMinimumSize.Should().Be(Size.Empty); 85_sub.DefaultPadding.Should().Be(Padding.Empty); 86_sub.DefaultSize.Should().Be(new Size(120, _sub.PreferredHeight)); 87_sub.DesignMode.Should().BeFalse(); 88_sub.Dock.Should().Be(DockStyle.None); 89_sub.DockPadding.Should().NotBeNull(); 90_sub.DockPadding.Should().BeSameAs(_sub.DockPadding); 91_sub.DockPadding.Top.Should().Be(0); 92_sub.DockPadding.Bottom.Should().Be(0); 93_sub.DockPadding.Left.Should().Be(0); 94_sub.DockPadding.Right.Should().Be(0); 95_sub.DoubleBuffered.Should().BeFalse(); 96_sub.Enabled.Should().BeTrue(); 97_sub.Events.Should().NotBeNull(); 98_sub.Events.Should().BeSameAs(_sub.Events); 99_sub.Focused.Should().BeFalse(); 100_sub.Font.Should().Be(Control.DefaultFont); 101_sub.FontHeight.Should().Be(_sub.Font.Height); 102_sub.ForeColor.Should().Be(SystemColors.WindowText); 103_sub.HasChildren.Should().BeTrue(); 104_sub.Height.Should().Be(_sub.PreferredHeight); 105_sub.HorizontalScroll.Should().NotBeNull(); 106_sub.HorizontalScroll.Should().BeSameAs(_sub.HorizontalScroll); 107_sub.HScroll.Should().BeFalse(); 108_sub.ImeMode.Should().Be(ImeMode.NoControl); 109_sub.ImeModeBase.Should().Be(ImeMode.NoControl); 110_sub.InterceptArrowKeys.Should().BeTrue(); 111_sub.InvokeRequired.Should().BeFalse(); 112_sub.IsAccessible.Should().BeFalse(); 113_sub.IsMirrored.Should().BeFalse(); 114_sub.Items.Count.Should().Be(0); 115_sub.Items.Should().BeSameAs(_sub.Items); 116_sub.LayoutEngine.Should().NotBeNull(); 117_sub.LayoutEngine.Should().BeSameAs(_sub.LayoutEngine); 118_sub.Left.Should().Be(0); 119_sub.Location.Should().Be(Point.Empty); 120_sub.Margin.Should().Be(new Padding(3)); 121_sub.MaximumSize.Should().Be(Size.Empty); 122_sub.MinimumSize.Should().Be(Size.Empty); 123_sub.Padding.Should().Be(Padding.Empty); 124_sub.Parent.Should().BeNull(); 125_sub.PreferredHeight.Should().Be(Control.DefaultFont.Height + 7); 126_sub.ProductName.Should().Be("Microsoft\u00AE .NET"); 127_sub.ReadOnly.Should().BeFalse(); 128_sub.RecreatingHandle.Should().BeFalse(); 129_sub.Region.Should().BeNull(); 130_sub.ResizeRedraw.Should().BeTrue(); 131_sub.Right.Should().Be(120); 132_sub.RightToLeft.Should().Be(RightToLeft.No); 133_sub.SelectedIndex.Should().Be(-1); 134_sub.SelectedItem.Should().BeNull(); 135_sub.ShowFocusCues.Should().BeTrue(); 136_sub.ShowKeyboardCues.Should().BeTrue(); 137_sub.Site.Should().BeNull(); 138_sub.Size.Should().Be(new Size(120, _sub.PreferredHeight)); 139_sub.TabIndex.Should().Be(0); 140_sub.TabStop.Should().BeTrue(); 141_sub.Text.Should().BeEmpty(); 142_sub.TextAlign.Should().Be(HorizontalAlignment.Left); 143_sub.Top.Should().Be(0); 144_sub.TopLevelControl.Should().BeNull(); 145_sub.UpDownAlign.Should().Be(LeftRightAlignment.Right); 146_sub.UserEdit.Should().BeFalse(); 147_sub.UseWaitCursor.Should().BeFalse(); 148_sub.Visible.Should().BeTrue(); 149_sub.VerticalScroll.Should().NotBeNull(); 150_sub.VerticalScroll.Should().BeSameAs(_sub.VerticalScroll); 151_sub.VScroll.Should().BeFalse(); 152_sub.Width.Should().Be(120); 153_sub.Wrap.Should().BeFalse(); 155_sub.IsHandleCreated.Should().BeFalse(); 161CreateParams createParams = _sub.CreateParams; 178createParams.Height.Should().Be(_sub.PreferredHeight); 184createParams.Should().BeSameAs(_sub.CreateParams); 185_sub.IsHandleCreated.Should().BeFalse(); 268_sub.SelectedIndex = -1; 270_sub.SelectedIndex.Should().Be(-1); 271_sub.SelectedItem.Should().BeNull(); 272_sub.Text.Should().BeEmpty(); 273_sub.UserEdit.Should().BeFalse(); 274_sub.ChangingText.Should().BeFalse(); 275_sub.IsHandleCreated.Should().BeFalse(); 277_sub.SelectedIndex = -1; 278_sub.SelectedIndex.Should().Be(-1); 279_sub.SelectedItem.Should().BeNull(); 280_sub.Text.Should().BeEmpty(); 281_sub.UserEdit.Should().BeFalse(); 282_sub.ChangingText.Should().BeFalse(); 283_sub.IsHandleCreated.Should().BeFalse(); 292_sub.Items.Add("Item1"); 293_sub.Items.Add("Item2"); 295_sub.SelectedIndex = value; 296_sub.SelectedIndex.Should().Be(value); 297_sub.SelectedItem.Should().Be(expected); 298_sub.Text.Should().Be(expectedText); 299_sub.UserEdit.Should().BeFalse(); 300_sub.ChangingText.Should().BeFalse(); 301_sub.IsHandleCreated.Should().BeFalse(); 304_sub.SelectedIndex = value; 305_sub.SelectedIndex.Should().Be(value); 306_sub.SelectedItem.Should().Be(expected); 307_sub.Text.Should().Be(expectedText); 308_sub.UserEdit.Should().BeFalse(); 309_sub.ChangingText.Should().BeFalse(); 310_sub.IsHandleCreated.Should().BeFalse(); 313_sub.SelectedIndex = -1; 314_sub.SelectedIndex.Should().Be(-1); 315_sub.SelectedItem.Should().BeNull(); 316_sub.Text.Should().Be(expectedText); 317_sub.UserEdit.Should().Be(expectedUserEdit); 318_sub.ChangingText.Should().BeFalse(); 319_sub.IsHandleCreated.Should().BeFalse(); 328_sub.UserEdit = true; 329_sub.Items.Add("Item1"); 330_sub.Items.Add("Item2"); 332_sub.SelectedIndex = value; 333_sub.SelectedIndex.Should().Be(value); 334_sub.SelectedItem.Should().Be(expected); 335_sub.Text.Should().Be(expectedText); 336_sub.UserEdit.Should().Be(!expectedUserEdit); 337_sub.ChangingText.Should().BeFalse(); 338_sub.IsHandleCreated.Should().BeFalse(); 341_sub.SelectedIndex = value; 342_sub.SelectedIndex.Should().Be(value); 343_sub.SelectedItem.Should().Be(expected); 344_sub.Text.Should().Be(expectedText); 345_sub.UserEdit.Should().Be(!expectedUserEdit); 346_sub.ChangingText.Should().BeFalse(); 347_sub.IsHandleCreated.Should().BeFalse(); 350_sub.SelectedIndex = -1; 351_sub.SelectedIndex.Should().Be(-1); 352_sub.SelectedItem.Should().BeNull(); 353_sub.Text.Should().Be(expectedText); 354_sub.UserEdit.Should().BeTrue(); 355_sub.ChangingText.Should().BeFalse(); 356_sub.IsHandleCreated.Should().BeFalse(); 440_sub.SelectedItem = value; 441_sub.SelectedIndex.Should().Be(-1); 442_sub.SelectedItem.Should().BeNull(); 443_sub.Text.Should().BeEmpty(); 444_sub.UserEdit.Should().BeFalse(); 445_sub.ChangingText.Should().BeFalse(); 446_sub.IsHandleCreated.Should().BeFalse(); 449_sub.SelectedItem = value; 450_sub.SelectedIndex.Should().Be(-1); 451_sub.SelectedItem.Should().BeNull(); 452_sub.Text.Should().BeEmpty(); 453_sub.UserEdit.Should().BeFalse(); 454_sub.ChangingText.Should().BeFalse(); 455_sub.IsHandleCreated.Should().BeFalse(); 465_sub.Items.Add("Item1"); 466_sub.Items.Add("Item2"); 468_sub.SelectedItem = value; 469_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 470_sub.SelectedItem.Should().Be(expected); 471_sub.Text.Should().Be(expectedText); 472_sub.UserEdit.Should().BeFalse(); 473_sub.ChangingText.Should().BeFalse(); 474_sub.IsHandleCreated.Should().BeFalse(); 477_sub.SelectedItem = value; 478_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 479_sub.SelectedItem.Should().Be(expected); 480_sub.Text.Should().Be(expectedText); 481_sub.UserEdit.Should().BeFalse(); 482_sub.ChangingText.Should().BeFalse(); 483_sub.IsHandleCreated.Should().BeFalse(); 486_sub.SelectedItem = "NoSuchItem"; 487_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 488_sub.SelectedItem.Should().Be(expected); 489_sub.Text.Should().Be(expectedText); 490_sub.UserEdit.Should().BeFalse(); 491_sub.ChangingText.Should().BeFalse(); 492_sub.IsHandleCreated.Should().BeFalse(); 495_sub.SelectedItem = null; 496_sub.SelectedIndex.Should().Be(-1); 497_sub.SelectedItem.Should().BeNull(); 498_sub.Text.Should().Be(expectedText); 499_sub.UserEdit.Should().Be(expectedUserEdit); 500_sub.ChangingText.Should().BeFalse(); 501_sub.IsHandleCreated.Should().BeFalse(); 511_sub.UserEdit = true; 512_sub.Items.Add("Item1"); 513_sub.Items.Add("Item2"); 515_sub.SelectedItem = value; 516_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 517_sub.SelectedItem.Should().Be(expected); 518_sub.Text.Should().Be(expectedText); 519_sub.UserEdit.Should().Be(!expectedUserEdit); 520_sub.ChangingText.Should().BeFalse(); 521_sub.IsHandleCreated.Should().BeFalse(); 524_sub.SelectedItem = value; 525_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 526_sub.SelectedItem.Should().Be(expected); 527_sub.Text.Should().Be(expectedText); 528_sub.UserEdit.Should().Be(!expectedUserEdit); 529_sub.ChangingText.Should().BeFalse(); 530_sub.IsHandleCreated.Should().BeFalse(); 533_sub.SelectedItem = "NoSuchItem"; 534_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 535_sub.SelectedItem.Should().Be(expected); 536_sub.Text.Should().Be(expectedText); 537_sub.UserEdit.Should().Be(!expectedUserEdit); 538_sub.ChangingText.Should().BeFalse(); 539_sub.IsHandleCreated.Should().BeFalse(); 542_sub.SelectedItem = null; 543_sub.SelectedIndex.Should().Be(-1); 544_sub.SelectedItem.Should().BeNull(); 545_sub.Text.Should().Be(expectedText); 546_sub.UserEdit.Should().BeTrue(); 547_sub.ChangingText.Should().BeFalse(); 548_sub.IsHandleCreated.Should().BeFalse(); 621_sub.UserEdit = userEdit; 622_sub.Sorted = value; 624_sub.Sorted.Should().Be(value); 625_sub.Items.Count.Should().Be(0); 626_sub.SelectedIndex.Should().Be(-1); 627_sub.UserEdit.Should().Be(userEdit); 628_sub.IsHandleCreated.Should().BeFalse(); 631_sub.Sorted = value; 632_sub.Sorted.Should().Be(value); 633_sub.Items.Count.Should().Be(0); 634_sub.SelectedIndex.Should().Be(-1); 635_sub.UserEdit.Should().Be(userEdit); 636_sub.IsHandleCreated.Should().BeFalse(); 639_sub.Sorted = !value; 640_sub.Sorted.Should().Be(!value); 641_sub.Items.Count.Should().Be(0); 642_sub.SelectedIndex.Should().Be(-1); 643_sub.UserEdit.Should().Be(userEdit); 644_sub.IsHandleCreated.Should().BeFalse(); 660_sub.Items.Add("c"); 661_sub.Items.Add("B"); 662_sub.Items.Add("a"); 663_sub.Items.Add("a"); 664_sub.Items.Add("d"); 665_sub.UserEdit = userEdit; 667_sub.Sorted = value; 668_sub.Sorted.Should().Be(value); 669_sub.Items.Cast<string>().Should().Equal(expectedItems); 670_sub.SelectedIndex.Should().Be(-1); 671_sub.IsHandleCreated.Should().BeFalse(); 674_sub.Sorted = value; 675_sub.Sorted.Should().Be(value); 676_sub.Items.Cast<string>().Should().Equal(expectedItems); 677_sub.SelectedIndex.Should().Be(-1); 678_sub.UserEdit.Should().Be(userEdit); 679_sub.IsHandleCreated.Should().BeFalse(); 682_sub.Sorted = !value; 683_sub.Sorted.Should().Be(!value); 684_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 685_sub.SelectedIndex.Should().Be(-1); 686_sub.UserEdit.Should().Be(userEdit); 687_sub.IsHandleCreated.Should().BeFalse(); 702_sub.Items.Add("c"); 703_sub.Items.Add("B"); 704_sub.Items.Add("a"); 705_sub.Items.Add("a"); 706_sub.Items.Add("d"); 707_sub.SelectedItem = "B"; 708_sub.UserEdit = userEdit; 710_sub.Sorted = value; 711_sub.Sorted.Should().Be(value); 712_sub.Items.Cast<string>().Should().Equal(expectedItems); 713_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 714_sub.IsHandleCreated.Should().BeFalse(); 717_sub.Sorted = value; 718_sub.Sorted.Should().Be(value); 719_sub.Items.Cast<string>().Should().Equal(expectedItems); 720_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 721_sub.UserEdit.Should().Be(userEdit); 722_sub.IsHandleCreated.Should().BeFalse(); 725_sub.Sorted = !value; 726_sub.Sorted.Should().Be(!value); 727_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 728_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 729_sub.UserEdit.Should().Be(userEdit); 730_sub.IsHandleCreated.Should().BeFalse(); 737_sub.UserEdit = userEdit; 738_sub.Handle.Should().NotBe(IntPtr.Zero); 740_sub.Invalidated += (sender, e) => invalidatedCallCount++; 742_sub.StyleChanged += (sender, e) => styleChangedCallCount++; 744_sub.HandleCreated += (sender, e) => createdCallCount++; 746_sub.Sorted = value; 747_sub.Sorted.Should().Be(value); 748_sub.Items.Count.Should().Be(0); 749_sub.SelectedIndex.Should().Be(-1); 750_sub.UserEdit.Should().Be(userEdit); 751_sub.IsHandleCreated.Should().BeTrue(); 757_sub.Sorted = value; 758_sub.Sorted.Should().Be(value); 759_sub.Items.Count.Should().Be(0); 760_sub.SelectedIndex.Should().Be(-1); 761_sub.UserEdit.Should().Be(userEdit); 762_sub.IsHandleCreated.Should().BeTrue(); 768_sub.Sorted = !value; 769_sub.Sorted.Should().Be(!value); 770_sub.Items.Count.Should().Be(0); 771_sub.SelectedIndex.Should().Be(-1); 772_sub.UserEdit.Should().Be(userEdit); 773_sub.IsHandleCreated.Should().BeTrue(); 783_sub.Items.Add("c"); 784_sub.Items.Add("B"); 785_sub.Items.Add("a"); 786_sub.Items.Add("a"); 787_sub.Items.Add("d"); 788_sub.Handle.Should().NotBe(IntPtr.Zero); 790_sub.Invalidated += (sender, e) => invalidatedCallCount++; 792_sub.StyleChanged += (sender, e) => styleChangedCallCount++; 794_sub.HandleCreated += (sender, e) => createdCallCount++; 795_sub.UserEdit = userEdit; 797_sub.Sorted = value; 798_sub.Sorted.Should().Be(value); 799_sub.Items.Cast<string>().Should().Equal(expectedItems); 800_sub.SelectedIndex.Should().Be(-1); 801_sub.IsHandleCreated.Should().BeTrue(); 807_sub.Sorted = value; 808_sub.Sorted.Should().Be(value); 809_sub.Items.Cast<string>().Should().Equal(expectedItems); 810_sub.SelectedIndex.Should().Be(-1); 811_sub.UserEdit.Should().Be(userEdit); 812_sub.IsHandleCreated.Should().BeTrue(); 818_sub.Sorted = !value; 819_sub.Sorted.Should().Be(!value); 820_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 821_sub.SelectedIndex.Should().Be(-1); 822_sub.UserEdit.Should().Be(userEdit); 823_sub.IsHandleCreated.Should().BeTrue(); 833_sub.Items.Add("c"); 834_sub.Items.Add("B"); 835_sub.Items.Add("a"); 836_sub.Items.Add("a"); 837_sub.Items.Add("d"); 838_sub.Handle.Should().NotBe(IntPtr.Zero); 840_sub.Invalidated += (sender, e) => invalidatedCallCount++; 842_sub.StyleChanged += (sender, e) => styleChangedCallCount++; 844_sub.HandleCreated += (sender, e) => createdCallCount++; 845_sub.SelectedItem = "B"; 846_sub.UserEdit = userEdit; 848_sub.Sorted = value; 849_sub.Sorted.Should().Be(value); 850_sub.Items.Cast<string>().Should().Equal(expectedItems); 851_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 852_sub.IsHandleCreated.Should().BeTrue(); 858_sub.Sorted = value; 859_sub.Sorted.Should().Be(value); 860_sub.Items.Cast<string>().Should().Equal(expectedItems); 861_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 862_sub.UserEdit.Should().Be(userEdit); 863_sub.IsHandleCreated.Should().BeTrue(); 869_sub.Sorted = !value; 870_sub.Sorted.Should().Be(!value); 871_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 872_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 873_sub.UserEdit.Should().Be(userEdit); 874_sub.IsHandleCreated.Should().BeTrue(); 939UpDownBase.UpDownBaseAccessibleObject instance = _sub.CreateAccessibilityInstance() as UpDownBase.UpDownBaseAccessibleObject; 941instance.Owner.Should().Be(_sub); 943_sub.CreateAccessibilityInstance().Should().NotBeSameAs(instance); 944_sub.AccessibilityObject.Should().NotBeSameAs(instance); 950_sub.AccessibleRole = AccessibleRole.HelpBalloon; 951var instance = _sub.CreateAccessibilityInstance() as UpDownBase.UpDownBaseAccessibleObject; 954instance.Owner.Should().Be(_sub); 956_sub.CreateAccessibilityInstance().Should().NotBeSameAs(instance); 957_sub.AccessibilityObject.Should().NotBeSameAs(instance); 975_sub.UserEdit = userEdit; 976_sub.Wrap = wrap; 978_sub.DownButton(); 979_sub.SelectedIndex.Should().Be(-1); 980_sub.UserEdit.Should().Be(userEdit); 983_sub.DownButton(); 984_sub.SelectedIndex.Should().Be(-1); 985_sub.UserEdit.Should().Be(userEdit); 992_sub.UserEdit = userEdit; 993_sub.Wrap = wrap; 995_sub.Items.Count.Should().Be(0); 997_sub.DownButton(); 998_sub.SelectedIndex.Should().Be(-1); 999_sub.UserEdit.Should().Be(userEdit); 1002_sub.DownButton(); 1003_sub.SelectedIndex.Should().Be(-1); 1004_sub.UserEdit.Should().Be(userEdit); 1019_sub.UserEdit = userEdit; 1020_sub.Wrap = wrap; 1021_sub.Items.Add("a"); 1022_sub.Items.Add("b"); 1023_sub.Items.Add("c"); 1025_sub.DownButton(); 1026_sub.SelectedIndex.Should().Be(0); 1027_sub.UserEdit.Should().BeFalse(); 1030_sub.DownButton(); 1031_sub.SelectedIndex.Should().Be(1); 1032_sub.UserEdit.Should().BeFalse(); 1035_sub.DownButton(); 1036_sub.SelectedIndex.Should().Be(2); 1037_sub.UserEdit.Should().BeFalse(); 1040_sub.DownButton(); 1041_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex); 1042_sub.UserEdit.Should().BeFalse(); 1048_sub.GetAutoSizeMode().Should().Be(AutoSizeMode.GrowOnly); 1062_sub.GetScrollState(bit).Should().Be(expected); 1088_sub.GetStyle(flag).Should().Be(expected); 1091_sub.GetStyle(flag).Should().Be(expected); 1097_sub.GetTopLevel().Should().BeFalse(); 1145sender.Should().Be(_sub); 1151_sub.SelectedItemChanged += handler; 1152_sub.OnSelectedItemChanged(source, eventArgs); 1156_sub.SelectedItemChanged -= handler; 1157_sub.OnSelectedItemChanged(source, eventArgs); 1168sender.Should().Be(_sub); 1174_sub.SelectedItemChanged += handler; 1175_sub.OnSelectedItemChanged(source, eventArgs); 1179_sub.SelectedItemChanged -= handler; 1180_sub.OnSelectedItemChanged(source, eventArgs); 1199_sub.UserEdit = userEdit; 1200_sub.Wrap = wrap; 1202_sub.UpButton(); 1203_sub.SelectedIndex.Should().Be(-1); 1204_sub.UserEdit.Should().Be(userEdit); 1207_sub.UpButton(); 1208_sub.SelectedIndex.Should().Be(-1); 1209_sub.UserEdit.Should().Be(userEdit); 1216_sub.UserEdit = userEdit; 1217_sub.Wrap = wrap; 1219_sub.Items.Count.Should().Be(0); 1221_sub.UpButton(); 1222_sub.SelectedIndex.Should().Be(-1); 1223_sub.UserEdit.Should().Be(userEdit); 1226_sub.UpButton(); 1227_sub.SelectedIndex.Should().Be(-1); 1228_sub.UserEdit.Should().Be(userEdit); 1243_sub.UserEdit = userEdit; 1244_sub.Wrap = wrap; 1245_sub.Items.Add("a"); 1246_sub.Items.Add("b"); 1247_sub.Items.Add("c"); 1248_sub.SelectedIndex = 2; 1250_sub.UpButton(); 1251_sub.SelectedIndex.Should().Be(1); 1252_sub.UserEdit.Should().BeFalse(); 1255_sub.UpButton(); 1256_sub.SelectedIndex.Should().Be(0); 1257_sub.UserEdit.Should().BeFalse(); 1260_sub.UpButton(); 1261_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex1); 1262_sub.UserEdit.Should().BeFalse(); 1265_sub.UpButton(); 1266_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex2); 1267_sub.UserEdit.Should().BeFalse(); 1277_sub.UserEdit = userEdit; 1278_sub.ChangingText = changingText; 1280_sub.UpdateEditText(); 1281_sub.Text.Should().BeEmpty(); 1282_sub.UserEdit.Should().BeFalse(); 1283_sub.ChangingText.Should().BeFalse(); 1284_sub.IsHandleCreated.Should().BeFalse(); 1287_sub.UpdateEditText(); 1288_sub.Text.Should().BeEmpty(); 1289_sub.UserEdit.Should().BeFalse(); 1290_sub.ChangingText.Should().BeFalse(); 1291_sub.IsHandleCreated.Should().BeFalse(); 1301_sub.Items.Add("Item1"); 1302_sub.Items.Add("Item2"); 1303_sub.UserEdit = userEdit; 1304_sub.ChangingText = changingText; 1306_sub.UpdateEditText(); 1307_sub.Text.Should().BeEmpty(); 1308_sub.UserEdit.Should().BeFalse(); 1309_sub.ChangingText.Should().BeFalse(); 1310_sub.IsHandleCreated.Should().BeFalse(); 1313_sub.UpdateEditText(); 1314_sub.Text.Should().BeEmpty(); 1315_sub.UserEdit.Should().BeFalse(); 1316_sub.ChangingText.Should().BeFalse(); 1317_sub.IsHandleCreated.Should().BeFalse(); 1327_sub.Items.Add("Item1"); 1328_sub.Items.Add("Item2"); 1329_sub.SelectedIndex = 0; 1330_sub.Text = "Text"; 1331_sub.UserEdit = userEdit; 1332_sub.ChangingText = changingText; 1334_sub.UpdateEditText(); 1335_sub.Text.Should().Be("Item1"); 1336_sub.UserEdit.Should().BeFalse(); 1337_sub.ChangingText.Should().BeFalse(); 1338_sub.IsHandleCreated.Should().BeFalse(); 1341_sub.UpdateEditText(); 1342_sub.Text.Should().Be("Item1"); 1343_sub.UserEdit.Should().BeFalse(); 1344_sub.ChangingText.Should().BeFalse(); 1345_sub.IsHandleCreated.Should().BeFalse();