1 write to _sub
System.Windows.Forms.Tests (1)
System\Windows\Forms\DomainUpDownTests.cs (1)
18_sub = new();
550 references to _sub
System.Windows.Forms.Tests (550)
System\Windows\Forms\DomainUpDownTests.cs (550)
25_sub.Items.Clear(); 26_sub.Dispose(); 32_sub.ActiveControl.Should().BeNull(); 33_sub.AllowDrop.Should().BeFalse(); 34_sub.Anchor.Should().Be(AnchorStyles.Top | AnchorStyles.Left); 35_sub.AutoScroll.Should().BeFalse(); 36_sub.AutoScaleDimensions.Should().Be(SizeF.Empty); 37_sub.AutoScaleFactor.Should().Be(new SizeF(1, 1)); 38_sub.AutoScrollMargin.Should().Be(Size.Empty); 39_sub.AutoScaleMode.Should().Be(AutoScaleMode.Inherit); 40_sub.AutoScrollMinSize.Should().Be(Size.Empty); 41_sub.AutoScrollPosition.Should().Be(Point.Empty); 42_sub.AutoSize.Should().BeFalse(); 43_sub.BackColor.Should().Be(SystemColors.Window); 44_sub.BackgroundImage.Should().BeNull(); 45_sub.BackgroundImageLayout.Should().Be(ImageLayout.Tile); 46_sub.BindingContext.Should().NotBeNull(); 47_sub.BorderStyle.Should().Be(BorderStyle.Fixed3D); 48_sub.Bottom.Should().Be(_sub.PreferredHeight); 49_sub.Bounds.Should().Be(new Rectangle(0, 0, 120, _sub.PreferredHeight)); 50_sub.CanEnableIme.Should().BeFalse(); 51_sub.CanFocus.Should().BeFalse(); 52_sub.CanRaiseEvents.Should().BeTrue(); 53_sub.CausesValidation.Should().BeTrue(); 54_sub.ChangingText.Should().BeFalse(); 57_sub.ClientRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 58_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 59_sub.ClientSize.Should().Be(new Size(120, Control.DefaultFont.Height + 7)); 60_sub.PreferredSize.Should().Be(new Size(16, _sub.PreferredHeight)); 64_sub.ClientRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3)); 65_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3)); 66_sub.ClientSize.Should().Be(new Size(116, Control.DefaultFont.Height + 3)); 67_sub.PreferredSize.Should().Be(new Size(20, _sub.PreferredHeight)); 70_sub.Container.Should().BeNull(); 71_sub.ContainsFocus.Should().BeFalse(); 72_sub.ContextMenuStrip.Should().BeNull(); 73_sub.Controls.Should().NotBeNull(); 74_sub.Controls.Should().BeSameAs(_sub.Controls); 75_sub.Created.Should().BeFalse(); 76_sub.CurrentAutoScaleDimensions.Should().Be(SizeF.Empty); 77_sub.Cursor.Should().Be(Cursors.Default); 78_sub.DefaultCursor.Should().Be(Cursors.Default); 79_sub.DefaultImeMode.Should().Be(ImeMode.Inherit); 80_sub.DefaultMargin.Should().Be(new Padding(3)); 81_sub.DefaultMaximumSize.Should().Be(Size.Empty); 82_sub.DefaultMinimumSize.Should().Be(Size.Empty); 83_sub.DefaultPadding.Should().Be(Padding.Empty); 84_sub.DefaultSize.Should().Be(new Size(120, _sub.PreferredHeight)); 85_sub.DesignMode.Should().BeFalse(); 86_sub.Dock.Should().Be(DockStyle.None); 87_sub.DockPadding.Should().NotBeNull(); 88_sub.DockPadding.Should().BeSameAs(_sub.DockPadding); 89_sub.DockPadding.Top.Should().Be(0); 90_sub.DockPadding.Bottom.Should().Be(0); 91_sub.DockPadding.Left.Should().Be(0); 92_sub.DockPadding.Right.Should().Be(0); 93_sub.DoubleBuffered.Should().BeFalse(); 94_sub.Enabled.Should().BeTrue(); 95_sub.Events.Should().NotBeNull(); 96_sub.Events.Should().BeSameAs(_sub.Events); 97_sub.Focused.Should().BeFalse(); 98_sub.Font.Should().Be(Control.DefaultFont); 99_sub.FontHeight.Should().Be(_sub.Font.Height); 100_sub.ForeColor.Should().Be(SystemColors.WindowText); 101_sub.HasChildren.Should().BeTrue(); 102_sub.Height.Should().Be(_sub.PreferredHeight); 103_sub.HorizontalScroll.Should().NotBeNull(); 104_sub.HorizontalScroll.Should().BeSameAs(_sub.HorizontalScroll); 105_sub.HScroll.Should().BeFalse(); 106_sub.ImeMode.Should().Be(ImeMode.NoControl); 107_sub.ImeModeBase.Should().Be(ImeMode.NoControl); 108_sub.InterceptArrowKeys.Should().BeTrue(); 109_sub.InvokeRequired.Should().BeFalse(); 110_sub.IsAccessible.Should().BeFalse(); 111_sub.IsMirrored.Should().BeFalse(); 112_sub.Items.Count.Should().Be(0); 113_sub.Items.Should().BeSameAs(_sub.Items); 114_sub.LayoutEngine.Should().NotBeNull(); 115_sub.LayoutEngine.Should().BeSameAs(_sub.LayoutEngine); 116_sub.Left.Should().Be(0); 117_sub.Location.Should().Be(Point.Empty); 118_sub.Margin.Should().Be(new Padding(3)); 119_sub.MaximumSize.Should().Be(Size.Empty); 120_sub.MinimumSize.Should().Be(Size.Empty); 121_sub.Padding.Should().Be(Padding.Empty); 122_sub.Parent.Should().BeNull(); 123_sub.PreferredHeight.Should().Be(Control.DefaultFont.Height + 7); 124_sub.ProductName.Should().Be("Microsoft\u00AE .NET"); 125_sub.ReadOnly.Should().BeFalse(); 126_sub.RecreatingHandle.Should().BeFalse(); 127_sub.Region.Should().BeNull(); 128_sub.ResizeRedraw.Should().BeTrue(); 129_sub.Right.Should().Be(120); 130_sub.RightToLeft.Should().Be(RightToLeft.No); 131_sub.SelectedIndex.Should().Be(-1); 132_sub.SelectedItem.Should().BeNull(); 133_sub.ShowFocusCues.Should().BeTrue(); 134_sub.ShowKeyboardCues.Should().BeTrue(); 135_sub.Site.Should().BeNull(); 136_sub.Size.Should().Be(new Size(120, _sub.PreferredHeight)); 137_sub.TabIndex.Should().Be(0); 138_sub.TabStop.Should().BeTrue(); 139_sub.Text.Should().BeEmpty(); 140_sub.TextAlign.Should().Be(HorizontalAlignment.Left); 141_sub.Top.Should().Be(0); 142_sub.TopLevelControl.Should().BeNull(); 143_sub.UpDownAlign.Should().Be(LeftRightAlignment.Right); 144_sub.UserEdit.Should().BeFalse(); 145_sub.UseWaitCursor.Should().BeFalse(); 146_sub.Visible.Should().BeTrue(); 147_sub.VerticalScroll.Should().NotBeNull(); 148_sub.VerticalScroll.Should().BeSameAs(_sub.VerticalScroll); 149_sub.VScroll.Should().BeFalse(); 150_sub.Width.Should().Be(120); 151_sub.Wrap.Should().BeFalse(); 153_sub.IsHandleCreated.Should().BeFalse(); 159CreateParams createParams = _sub.CreateParams; 176createParams.Height.Should().Be(_sub.PreferredHeight); 182createParams.Should().BeSameAs(_sub.CreateParams); 183_sub.IsHandleCreated.Should().BeFalse(); 266_sub.SelectedIndex = -1; 268_sub.SelectedIndex.Should().Be(-1); 269_sub.SelectedItem.Should().BeNull(); 270_sub.Text.Should().BeEmpty(); 271_sub.UserEdit.Should().BeFalse(); 272_sub.ChangingText.Should().BeFalse(); 273_sub.IsHandleCreated.Should().BeFalse(); 275_sub.SelectedIndex = -1; 276_sub.SelectedIndex.Should().Be(-1); 277_sub.SelectedItem.Should().BeNull(); 278_sub.Text.Should().BeEmpty(); 279_sub.UserEdit.Should().BeFalse(); 280_sub.ChangingText.Should().BeFalse(); 281_sub.IsHandleCreated.Should().BeFalse(); 290_sub.Items.Add("Item1"); 291_sub.Items.Add("Item2"); 293_sub.SelectedIndex = value; 294_sub.SelectedIndex.Should().Be(value); 295_sub.SelectedItem.Should().Be(expected); 296_sub.Text.Should().Be(expectedText); 297_sub.UserEdit.Should().BeFalse(); 298_sub.ChangingText.Should().BeFalse(); 299_sub.IsHandleCreated.Should().BeFalse(); 302_sub.SelectedIndex = value; 303_sub.SelectedIndex.Should().Be(value); 304_sub.SelectedItem.Should().Be(expected); 305_sub.Text.Should().Be(expectedText); 306_sub.UserEdit.Should().BeFalse(); 307_sub.ChangingText.Should().BeFalse(); 308_sub.IsHandleCreated.Should().BeFalse(); 311_sub.SelectedIndex = -1; 312_sub.SelectedIndex.Should().Be(-1); 313_sub.SelectedItem.Should().BeNull(); 314_sub.Text.Should().Be(expectedText); 315_sub.UserEdit.Should().Be(expectedUserEdit); 316_sub.ChangingText.Should().BeFalse(); 317_sub.IsHandleCreated.Should().BeFalse(); 326_sub.UserEdit = true; 327_sub.Items.Add("Item1"); 328_sub.Items.Add("Item2"); 330_sub.SelectedIndex = value; 331_sub.SelectedIndex.Should().Be(value); 332_sub.SelectedItem.Should().Be(expected); 333_sub.Text.Should().Be(expectedText); 334_sub.UserEdit.Should().Be(!expectedUserEdit); 335_sub.ChangingText.Should().BeFalse(); 336_sub.IsHandleCreated.Should().BeFalse(); 339_sub.SelectedIndex = value; 340_sub.SelectedIndex.Should().Be(value); 341_sub.SelectedItem.Should().Be(expected); 342_sub.Text.Should().Be(expectedText); 343_sub.UserEdit.Should().Be(!expectedUserEdit); 344_sub.ChangingText.Should().BeFalse(); 345_sub.IsHandleCreated.Should().BeFalse(); 348_sub.SelectedIndex = -1; 349_sub.SelectedIndex.Should().Be(-1); 350_sub.SelectedItem.Should().BeNull(); 351_sub.Text.Should().Be(expectedText); 352_sub.UserEdit.Should().BeTrue(); 353_sub.ChangingText.Should().BeFalse(); 354_sub.IsHandleCreated.Should().BeFalse(); 438_sub.SelectedItem = value; 439_sub.SelectedIndex.Should().Be(-1); 440_sub.SelectedItem.Should().BeNull(); 441_sub.Text.Should().BeEmpty(); 442_sub.UserEdit.Should().BeFalse(); 443_sub.ChangingText.Should().BeFalse(); 444_sub.IsHandleCreated.Should().BeFalse(); 447_sub.SelectedItem = value; 448_sub.SelectedIndex.Should().Be(-1); 449_sub.SelectedItem.Should().BeNull(); 450_sub.Text.Should().BeEmpty(); 451_sub.UserEdit.Should().BeFalse(); 452_sub.ChangingText.Should().BeFalse(); 453_sub.IsHandleCreated.Should().BeFalse(); 463_sub.Items.Add("Item1"); 464_sub.Items.Add("Item2"); 466_sub.SelectedItem = value; 467_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 468_sub.SelectedItem.Should().Be(expected); 469_sub.Text.Should().Be(expectedText); 470_sub.UserEdit.Should().BeFalse(); 471_sub.ChangingText.Should().BeFalse(); 472_sub.IsHandleCreated.Should().BeFalse(); 475_sub.SelectedItem = value; 476_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 477_sub.SelectedItem.Should().Be(expected); 478_sub.Text.Should().Be(expectedText); 479_sub.UserEdit.Should().BeFalse(); 480_sub.ChangingText.Should().BeFalse(); 481_sub.IsHandleCreated.Should().BeFalse(); 484_sub.SelectedItem = "NoSuchItem"; 485_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 486_sub.SelectedItem.Should().Be(expected); 487_sub.Text.Should().Be(expectedText); 488_sub.UserEdit.Should().BeFalse(); 489_sub.ChangingText.Should().BeFalse(); 490_sub.IsHandleCreated.Should().BeFalse(); 493_sub.SelectedItem = null; 494_sub.SelectedIndex.Should().Be(-1); 495_sub.SelectedItem.Should().BeNull(); 496_sub.Text.Should().Be(expectedText); 497_sub.UserEdit.Should().Be(expectedUserEdit); 498_sub.ChangingText.Should().BeFalse(); 499_sub.IsHandleCreated.Should().BeFalse(); 509_sub.UserEdit = true; 510_sub.Items.Add("Item1"); 511_sub.Items.Add("Item2"); 513_sub.SelectedItem = value; 514_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 515_sub.SelectedItem.Should().Be(expected); 516_sub.Text.Should().Be(expectedText); 517_sub.UserEdit.Should().Be(!expectedUserEdit); 518_sub.ChangingText.Should().BeFalse(); 519_sub.IsHandleCreated.Should().BeFalse(); 522_sub.SelectedItem = value; 523_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 524_sub.SelectedItem.Should().Be(expected); 525_sub.Text.Should().Be(expectedText); 526_sub.UserEdit.Should().Be(!expectedUserEdit); 527_sub.ChangingText.Should().BeFalse(); 528_sub.IsHandleCreated.Should().BeFalse(); 531_sub.SelectedItem = "NoSuchItem"; 532_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 533_sub.SelectedItem.Should().Be(expected); 534_sub.Text.Should().Be(expectedText); 535_sub.UserEdit.Should().Be(!expectedUserEdit); 536_sub.ChangingText.Should().BeFalse(); 537_sub.IsHandleCreated.Should().BeFalse(); 540_sub.SelectedItem = null; 541_sub.SelectedIndex.Should().Be(-1); 542_sub.SelectedItem.Should().BeNull(); 543_sub.Text.Should().Be(expectedText); 544_sub.UserEdit.Should().BeTrue(); 545_sub.ChangingText.Should().BeFalse(); 546_sub.IsHandleCreated.Should().BeFalse(); 619_sub.UserEdit = userEdit; 620_sub.Sorted = value; 622_sub.Sorted.Should().Be(value); 623_sub.Items.Count.Should().Be(0); 624_sub.SelectedIndex.Should().Be(-1); 625_sub.UserEdit.Should().Be(userEdit); 626_sub.IsHandleCreated.Should().BeFalse(); 629_sub.Sorted = value; 630_sub.Sorted.Should().Be(value); 631_sub.Items.Count.Should().Be(0); 632_sub.SelectedIndex.Should().Be(-1); 633_sub.UserEdit.Should().Be(userEdit); 634_sub.IsHandleCreated.Should().BeFalse(); 637_sub.Sorted = !value; 638_sub.Sorted.Should().Be(!value); 639_sub.Items.Count.Should().Be(0); 640_sub.SelectedIndex.Should().Be(-1); 641_sub.UserEdit.Should().Be(userEdit); 642_sub.IsHandleCreated.Should().BeFalse(); 658_sub.Items.Add("c"); 659_sub.Items.Add("B"); 660_sub.Items.Add("a"); 661_sub.Items.Add("a"); 662_sub.Items.Add("d"); 663_sub.UserEdit = userEdit; 665_sub.Sorted = value; 666_sub.Sorted.Should().Be(value); 667_sub.Items.Cast<string>().Should().Equal(expectedItems); 668_sub.SelectedIndex.Should().Be(-1); 669_sub.IsHandleCreated.Should().BeFalse(); 672_sub.Sorted = value; 673_sub.Sorted.Should().Be(value); 674_sub.Items.Cast<string>().Should().Equal(expectedItems); 675_sub.SelectedIndex.Should().Be(-1); 676_sub.UserEdit.Should().Be(userEdit); 677_sub.IsHandleCreated.Should().BeFalse(); 680_sub.Sorted = !value; 681_sub.Sorted.Should().Be(!value); 682_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 683_sub.SelectedIndex.Should().Be(-1); 684_sub.UserEdit.Should().Be(userEdit); 685_sub.IsHandleCreated.Should().BeFalse(); 700_sub.Items.Add("c"); 701_sub.Items.Add("B"); 702_sub.Items.Add("a"); 703_sub.Items.Add("a"); 704_sub.Items.Add("d"); 705_sub.SelectedItem = "B"; 706_sub.UserEdit = userEdit; 708_sub.Sorted = value; 709_sub.Sorted.Should().Be(value); 710_sub.Items.Cast<string>().Should().Equal(expectedItems); 711_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 712_sub.IsHandleCreated.Should().BeFalse(); 715_sub.Sorted = value; 716_sub.Sorted.Should().Be(value); 717_sub.Items.Cast<string>().Should().Equal(expectedItems); 718_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 719_sub.UserEdit.Should().Be(userEdit); 720_sub.IsHandleCreated.Should().BeFalse(); 723_sub.Sorted = !value; 724_sub.Sorted.Should().Be(!value); 725_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 726_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 727_sub.UserEdit.Should().Be(userEdit); 728_sub.IsHandleCreated.Should().BeFalse(); 735_sub.UserEdit = userEdit; 736_sub.Handle.Should().NotBe(IntPtr.Zero); 738_sub.Invalidated += (sender, e) => invalidatedCallCount++; 740_sub.StyleChanged += (sender, e) => styleChangedCallCount++; 742_sub.HandleCreated += (sender, e) => createdCallCount++; 744_sub.Sorted = value; 745_sub.Sorted.Should().Be(value); 746_sub.Items.Count.Should().Be(0); 747_sub.SelectedIndex.Should().Be(-1); 748_sub.UserEdit.Should().Be(userEdit); 749_sub.IsHandleCreated.Should().BeTrue(); 755_sub.Sorted = value; 756_sub.Sorted.Should().Be(value); 757_sub.Items.Count.Should().Be(0); 758_sub.SelectedIndex.Should().Be(-1); 759_sub.UserEdit.Should().Be(userEdit); 760_sub.IsHandleCreated.Should().BeTrue(); 766_sub.Sorted = !value; 767_sub.Sorted.Should().Be(!value); 768_sub.Items.Count.Should().Be(0); 769_sub.SelectedIndex.Should().Be(-1); 770_sub.UserEdit.Should().Be(userEdit); 771_sub.IsHandleCreated.Should().BeTrue(); 781_sub.Items.Add("c"); 782_sub.Items.Add("B"); 783_sub.Items.Add("a"); 784_sub.Items.Add("a"); 785_sub.Items.Add("d"); 786_sub.Handle.Should().NotBe(IntPtr.Zero); 788_sub.Invalidated += (sender, e) => invalidatedCallCount++; 790_sub.StyleChanged += (sender, e) => styleChangedCallCount++; 792_sub.HandleCreated += (sender, e) => createdCallCount++; 793_sub.UserEdit = userEdit; 795_sub.Sorted = value; 796_sub.Sorted.Should().Be(value); 797_sub.Items.Cast<string>().Should().Equal(expectedItems); 798_sub.SelectedIndex.Should().Be(-1); 799_sub.IsHandleCreated.Should().BeTrue(); 805_sub.Sorted = value; 806_sub.Sorted.Should().Be(value); 807_sub.Items.Cast<string>().Should().Equal(expectedItems); 808_sub.SelectedIndex.Should().Be(-1); 809_sub.UserEdit.Should().Be(userEdit); 810_sub.IsHandleCreated.Should().BeTrue(); 816_sub.Sorted = !value; 817_sub.Sorted.Should().Be(!value); 818_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 819_sub.SelectedIndex.Should().Be(-1); 820_sub.UserEdit.Should().Be(userEdit); 821_sub.IsHandleCreated.Should().BeTrue(); 831_sub.Items.Add("c"); 832_sub.Items.Add("B"); 833_sub.Items.Add("a"); 834_sub.Items.Add("a"); 835_sub.Items.Add("d"); 836_sub.Handle.Should().NotBe(IntPtr.Zero); 838_sub.Invalidated += (sender, e) => invalidatedCallCount++; 840_sub.StyleChanged += (sender, e) => styleChangedCallCount++; 842_sub.HandleCreated += (sender, e) => createdCallCount++; 843_sub.SelectedItem = "B"; 844_sub.UserEdit = userEdit; 846_sub.Sorted = value; 847_sub.Sorted.Should().Be(value); 848_sub.Items.Cast<string>().Should().Equal(expectedItems); 849_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 850_sub.IsHandleCreated.Should().BeTrue(); 856_sub.Sorted = value; 857_sub.Sorted.Should().Be(value); 858_sub.Items.Cast<string>().Should().Equal(expectedItems); 859_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 860_sub.UserEdit.Should().Be(userEdit); 861_sub.IsHandleCreated.Should().BeTrue(); 867_sub.Sorted = !value; 868_sub.Sorted.Should().Be(!value); 869_sub.Items.Cast<string>().Should().Equal(["a", "a", "B", "c", "d"]); 870_sub.SelectedIndex.Should().Be(expectedSelectedIndex); 871_sub.UserEdit.Should().Be(userEdit); 872_sub.IsHandleCreated.Should().BeTrue(); 937UpDownBase.UpDownBaseAccessibleObject instance = _sub.CreateAccessibilityInstance() as UpDownBase.UpDownBaseAccessibleObject; 939instance.Owner.Should().Be(_sub); 941_sub.CreateAccessibilityInstance().Should().NotBeSameAs(instance); 942_sub.AccessibilityObject.Should().NotBeSameAs(instance); 948_sub.AccessibleRole = AccessibleRole.HelpBalloon; 949var instance = _sub.CreateAccessibilityInstance() as UpDownBase.UpDownBaseAccessibleObject; 952instance.Owner.Should().Be(_sub); 954_sub.CreateAccessibilityInstance().Should().NotBeSameAs(instance); 955_sub.AccessibilityObject.Should().NotBeSameAs(instance); 973_sub.UserEdit = userEdit; 974_sub.Wrap = wrap; 976_sub.DownButton(); 977_sub.SelectedIndex.Should().Be(-1); 978_sub.UserEdit.Should().Be(userEdit); 981_sub.DownButton(); 982_sub.SelectedIndex.Should().Be(-1); 983_sub.UserEdit.Should().Be(userEdit); 990_sub.UserEdit = userEdit; 991_sub.Wrap = wrap; 993_sub.Items.Count.Should().Be(0); 995_sub.DownButton(); 996_sub.SelectedIndex.Should().Be(-1); 997_sub.UserEdit.Should().Be(userEdit); 1000_sub.DownButton(); 1001_sub.SelectedIndex.Should().Be(-1); 1002_sub.UserEdit.Should().Be(userEdit); 1017_sub.UserEdit = userEdit; 1018_sub.Wrap = wrap; 1019_sub.Items.Add("a"); 1020_sub.Items.Add("b"); 1021_sub.Items.Add("c"); 1023_sub.DownButton(); 1024_sub.SelectedIndex.Should().Be(0); 1025_sub.UserEdit.Should().BeFalse(); 1028_sub.DownButton(); 1029_sub.SelectedIndex.Should().Be(1); 1030_sub.UserEdit.Should().BeFalse(); 1033_sub.DownButton(); 1034_sub.SelectedIndex.Should().Be(2); 1035_sub.UserEdit.Should().BeFalse(); 1038_sub.DownButton(); 1039_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex); 1040_sub.UserEdit.Should().BeFalse(); 1046_sub.GetAutoSizeMode().Should().Be(AutoSizeMode.GrowOnly); 1060_sub.GetScrollState(bit).Should().Be(expected); 1086_sub.GetStyle(flag).Should().Be(expected); 1089_sub.GetStyle(flag).Should().Be(expected); 1095_sub.GetTopLevel().Should().BeFalse(); 1143sender.Should().Be(_sub); 1149_sub.SelectedItemChanged += handler; 1150_sub.OnSelectedItemChanged(source, eventArgs); 1154_sub.SelectedItemChanged -= handler; 1155_sub.OnSelectedItemChanged(source, eventArgs); 1166sender.Should().Be(_sub); 1172_sub.SelectedItemChanged += handler; 1173_sub.OnSelectedItemChanged(source, eventArgs); 1177_sub.SelectedItemChanged -= handler; 1178_sub.OnSelectedItemChanged(source, eventArgs); 1197_sub.UserEdit = userEdit; 1198_sub.Wrap = wrap; 1200_sub.UpButton(); 1201_sub.SelectedIndex.Should().Be(-1); 1202_sub.UserEdit.Should().Be(userEdit); 1205_sub.UpButton(); 1206_sub.SelectedIndex.Should().Be(-1); 1207_sub.UserEdit.Should().Be(userEdit); 1214_sub.UserEdit = userEdit; 1215_sub.Wrap = wrap; 1217_sub.Items.Count.Should().Be(0); 1219_sub.UpButton(); 1220_sub.SelectedIndex.Should().Be(-1); 1221_sub.UserEdit.Should().Be(userEdit); 1224_sub.UpButton(); 1225_sub.SelectedIndex.Should().Be(-1); 1226_sub.UserEdit.Should().Be(userEdit); 1241_sub.UserEdit = userEdit; 1242_sub.Wrap = wrap; 1243_sub.Items.Add("a"); 1244_sub.Items.Add("b"); 1245_sub.Items.Add("c"); 1246_sub.SelectedIndex = 2; 1248_sub.UpButton(); 1249_sub.SelectedIndex.Should().Be(1); 1250_sub.UserEdit.Should().BeFalse(); 1253_sub.UpButton(); 1254_sub.SelectedIndex.Should().Be(0); 1255_sub.UserEdit.Should().BeFalse(); 1258_sub.UpButton(); 1259_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex1); 1260_sub.UserEdit.Should().BeFalse(); 1263_sub.UpButton(); 1264_sub.SelectedIndex.Should().Be(expectedWrapSelectedIndex2); 1265_sub.UserEdit.Should().BeFalse(); 1275_sub.UserEdit = userEdit; 1276_sub.ChangingText = changingText; 1278_sub.UpdateEditText(); 1279_sub.Text.Should().BeEmpty(); 1280_sub.UserEdit.Should().BeFalse(); 1281_sub.ChangingText.Should().BeFalse(); 1282_sub.IsHandleCreated.Should().BeFalse(); 1285_sub.UpdateEditText(); 1286_sub.Text.Should().BeEmpty(); 1287_sub.UserEdit.Should().BeFalse(); 1288_sub.ChangingText.Should().BeFalse(); 1289_sub.IsHandleCreated.Should().BeFalse(); 1299_sub.Items.Add("Item1"); 1300_sub.Items.Add("Item2"); 1301_sub.UserEdit = userEdit; 1302_sub.ChangingText = changingText; 1304_sub.UpdateEditText(); 1305_sub.Text.Should().BeEmpty(); 1306_sub.UserEdit.Should().BeFalse(); 1307_sub.ChangingText.Should().BeFalse(); 1308_sub.IsHandleCreated.Should().BeFalse(); 1311_sub.UpdateEditText(); 1312_sub.Text.Should().BeEmpty(); 1313_sub.UserEdit.Should().BeFalse(); 1314_sub.ChangingText.Should().BeFalse(); 1315_sub.IsHandleCreated.Should().BeFalse(); 1325_sub.Items.Add("Item1"); 1326_sub.Items.Add("Item2"); 1327_sub.SelectedIndex = 0; 1328_sub.Text = "Text"; 1329_sub.UserEdit = userEdit; 1330_sub.ChangingText = changingText; 1332_sub.UpdateEditText(); 1333_sub.Text.Should().Be("Item1"); 1334_sub.UserEdit.Should().BeFalse(); 1335_sub.ChangingText.Should().BeFalse(); 1336_sub.IsHandleCreated.Should().BeFalse(); 1339_sub.UpdateEditText(); 1340_sub.Text.Should().Be("Item1"); 1341_sub.UserEdit.Should().BeFalse(); 1342_sub.ChangingText.Should().BeFalse(); 1343_sub.IsHandleCreated.Should().BeFalse();