1 write to _control
System.Windows.Forms.Tests (1)
System\Windows\Forms\DomainUpDownTests.cs (1)
17_control = new();
137 references to _control
System.Windows.Forms.Tests (137)
System\Windows\Forms\DomainUpDownTests.cs (137)
23_control.Items.Clear(); 24_control.Dispose(); 190_control.Padding = value; 192_control.Padding.Should().Be(expected); 193_control.IsHandleCreated.Should().BeFalse(); 195_control.Padding = value; 196_control.Padding.Should().Be(expected); 197_control.IsHandleCreated.Should().BeFalse(); 204_control.Handle.Should().NotBe(IntPtr.Zero); 206_control.Invalidated += (sender, e) => invalidatedCallCount++; 208_control.StyleChanged += (sender, e) => styleChangedCallCount++; 210_control.HandleCreated += (sender, e) => createdCallCount++; 212_control.Padding = value; 213_control.Padding.Should().Be(expected); 214_control.IsHandleCreated.Should().BeTrue(); 219_control.Padding = value; 220_control.Padding.Should().Be(expected); 221_control.IsHandleCreated.Should().BeTrue(); 233sender.Should().Be(_control); 237_control.PaddingChanged += handler; 241_control.Padding = padding1; 242_control.Padding.Should().Be(padding1); 246_control.Padding = padding1; 247_control.Padding.Should().Be(padding1); 252_control.Padding = padding2; 253_control.Padding.Should().Be(padding2); 257_control.PaddingChanged -= handler; 258_control.Padding = padding1; 259_control.Padding.Should().Be(padding1); 360_control.Items.Add("Item1"); 361_control.Items.Add("Item2"); 367sender.Should().Be(_control); 373sender.Should().Be(_control); 378_control.TextChanged += textChangedHandler; 379_control.SelectedItemChanged += handler; 382_control.SelectedIndex = 0; 383_control.SelectedIndex.Should().Be(0); 388_control.SelectedIndex = 0; 389_control.SelectedIndex.Should().Be(0); 394_control.SelectedIndex = 1; 395_control.SelectedIndex.Should().Be(1); 400_control.SelectedIndex = -1; 401_control.SelectedIndex.Should().Be(-1); 406_control.TextChanged -= textChangedHandler; 407_control.SelectedItemChanged -= handler; 408_control.SelectedIndex = 0; 409_control.SelectedIndex.Should().Be(0); 420_control.Invoking(c => c.SelectedIndex = value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value"); 429_control.Items.Add("Item"); 430_control.Invoking(c => c.SelectedIndex = value).Should().Throw<ArgumentOutOfRangeException>().And.ParamName.Should().Be("value"); 552_control.Items.Add("Item1"); 553_control.Items.Add("Item2"); 559sender.Should().Be(_control); 565sender.Should().Be(_control); 570_control.TextChanged += textChangedHandler; 571_control.SelectedItemChanged += handler; 574_control.SelectedItem = "Item1"; 575_control.SelectedItem.Should().Be("Item1"); 580_control.SelectedItem = "Item1"; 581_control.SelectedItem.Should().Be("Item1"); 586_control.SelectedItem = "Item2"; 587_control.SelectedItem.Should().Be("Item2"); 592_control.SelectedItem = null; 593_control.SelectedItem.Should().BeNull(); 598_control.TextChanged -= textChangedHandler; 599_control.SelectedItemChanged -= handler; 600_control.SelectedItem = "Item1"; 601_control.SelectedItem.Should().Be("Item1"); 882_control.Wrap = value; 884_control.Wrap.Should().Be(value); 885_control.IsHandleCreated.Should().BeFalse(); 888_control.Wrap = value; 889_control.Wrap.Should().Be(value); 890_control.IsHandleCreated.Should().BeFalse(); 893_control.Wrap = !value; 894_control.Wrap.Should().Be(!value); 895_control.IsHandleCreated.Should().BeFalse(); 902_control.Handle.Should().NotBe(IntPtr.Zero); 904_control.Invalidated += (sender, e) => invalidatedCallCount++; 906_control.StyleChanged += (sender, e) => styleChangedCallCount++; 908_control.HandleCreated += (sender, e) => createdCallCount++; 910_control.Wrap = value; 911_control.Wrap.Should().Be(value); 912_control.IsHandleCreated.Should().BeTrue(); 918_control.Wrap = value; 919_control.Wrap.Should().Be(value); 920_control.IsHandleCreated.Should().BeTrue(); 926_control.Wrap = !value; 927_control.Wrap.Should().Be(!value); 928_control.IsHandleCreated.Should().BeTrue(); 1114_control.Items.Add("foo1"); 1115_control.Items.Add("foo2"); 1116_control.Items.Add("foo3"); 1117_control.Items.Add("Cowman"); 1118_control.Items.Add("foo4"); 1119_control.MatchIndex(text, false, start).Should().Be(expected); 1125_control.Items.Add("item1"); 1126Action act = () => _control.MatchIndex(null, false, 0); 1353_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1355_control.SelectedIndex = initialIndex; 1356_control.Wrap = wrap; 1358_control.DownButton(); 1360_control.SelectedIndex.Should().Be(expectedIndex); 1370_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1372_control.SelectedIndex = initialIndex; 1373_control.Wrap = wrap; 1375_control.DownButton(); 1376_control.DownButton(); 1378_control.SelectedIndex.Should().Be(expectedIndex); 1386_control.Items.Clear(); 1387_control.Items.AddRange(items); 1388_control.SelectedIndex = selectedIndex; 1390string s = _control.ToString(); 1401_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1402_control.Text = text; 1403_control.UpButton(); 1404_control.SelectedIndex.Should().Be(expectedIndex); 1410_control.Text = "NoSuchItem"; 1411_control.UpButton(); 1412_control.SelectedIndex.Should().Be(-1); 1418_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1419_control.SelectedIndex = 2; 1420_control.UpButton(); 1421_control.SelectedIndex.Should().Be(1); 1427_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1428_control.SelectedIndex = 0; 1429_control.Wrap = false; 1430_control.UpButton(); 1431_control.SelectedIndex.Should().Be(0); 1437_control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" }); 1438_control.SelectedIndex = 0; 1439_control.Wrap = true; 1440_control.UpButton(); 1441_control.SelectedIndex.Should().Be(2); 1447_control.Items.Clear(); 1448_control.UpButton(); 1449_control.SelectedIndex.Should().Be(-1);