1 write to _dataGridViewComboBoxCell
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (1)
16_dataGridViewComboBoxCell = new();
56 references to _dataGridViewComboBoxCell
System.Windows.Forms.Tests (56)
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (56)
13public void Dispose() => _dataGridViewComboBoxCell.Dispose(); 20_dataGridViewComboBoxCell.AutoComplete.Should().BeTrue(); 25_dataGridViewComboBoxCell.AutoComplete = false; 26_dataGridViewComboBoxCell.AutoComplete.Should().BeFalse(); 31_dataGridViewComboBoxCell.DataSource.Should().BeNull(); 37_dataGridViewComboBoxCell.DataSource = list; 38_dataGridViewComboBoxCell.DataSource.Should().BeSameAs(list); 45_dataGridViewComboBoxCell.DataSource = bindingSource; 47_dataGridViewComboBoxCell.DataSource.Should().BeSameAs(bindingSource); 53Exception? invalidDataSourceException = Record.Exception(() => _dataGridViewComboBoxCell.DataSource = 123); 61_dataGridViewComboBoxCell.DataSource = new List<string> { "a" }; 62_dataGridViewComboBoxCell.DisplayMember = "Name"; 63_dataGridViewComboBoxCell.ValueMember = "Id"; 64_dataGridViewComboBoxCell.DataSource = null; 66_dataGridViewComboBoxCell.DataSource.Should().BeNull(); 67_dataGridViewComboBoxCell.DisplayMember.Should().BeEmpty(); 68_dataGridViewComboBoxCell.ValueMember.Should().BeEmpty(); 73_dataGridViewComboBoxCell.DisplayStyleForCurrentCellOnly.Should().BeFalse(); 77_dataGridViewComboBoxCell.DropDownWidth.Should().Be(1); 84_dataGridViewComboBoxCell.DropDownWidth = width; 85_dataGridViewComboBoxCell.DropDownWidth.Should().Be(width); 93Exception? dropDownWidthOutOfRangeException = Record.Exception(() => _dataGridViewComboBoxCell.DropDownWidth = width); 100_dataGridViewComboBoxCell.FlatStyle.Should().Be(FlatStyle.Standard); 109_dataGridViewComboBoxCell.FlatStyle = style; 110_dataGridViewComboBoxCell.FlatStyle.Should().Be(style); 115_dataGridViewComboBoxCell.MaxDropDownItems.Should().Be(DataGridViewComboBoxCell.DefaultMaxDropDownItems); 123_dataGridViewComboBoxCell.MaxDropDownItems = value; 124_dataGridViewComboBoxCell.MaxDropDownItems.Should().Be(value); 134Exception? maxDropDownItemsOutOfRangeException = Record.Exception(() => _dataGridViewComboBoxCell.MaxDropDownItems = value); 141_dataGridViewComboBoxCell.Sorted.Should().BeFalse(); 146_dataGridViewComboBoxCell.Sorted = true; 147_dataGridViewComboBoxCell.Sorted.Should().BeTrue(); 153_dataGridViewComboBoxCell.DataSource = new List<string> { "a", "b" }; 155Exception? sortedWithDataSourceException = Record.Exception(() => _dataGridViewComboBoxCell.Sorted = true); 162_dataGridViewComboBoxCell.ValueMember.Should().BeEmpty(); 170_dataGridViewComboBoxCell.ValueMember = value; 171_dataGridViewComboBoxCell.ValueMember.Should().Be(value); 176_dataGridViewComboBoxCell.ValueType.Should().Be(typeof(object)); 203_dataGridViewComboBoxCell.TestAccessor().Dynamic.DisplayMemberProperty = prop; 204_dataGridViewComboBoxCell.TestAccessor().Dynamic.ValueMemberProperty = null; 206_dataGridViewComboBoxCell.ValueType.Should().Be(typeof(string)); 216Rectangle result = _dataGridViewComboBoxCell.TestAccessor().Dynamic.GetContentBounds(g, style, 0); 225using DataGridViewComboBoxColumn column = new() { CellTemplate = _dataGridViewComboBoxCell }; 231Rectangle result = _dataGridViewComboBoxCell.TestAccessor().Dynamic.GetContentBounds(g, style, -1); 243Rectangle result = _dataGridViewComboBoxCell.TestAccessor().Dynamic.GetErrorIconBounds(g, style, 0); 252using DataGridViewComboBoxColumn column = new() { CellTemplate = _dataGridViewComboBoxCell }; 258Rectangle result = _dataGridViewComboBoxCell.TestAccessor().Dynamic.GetErrorIconBounds(g, style, -1); 270Size result = _dataGridViewComboBoxCell.TestAccessor().Dynamic.GetPreferredSize( 309bool result = _dataGridViewComboBoxCell.KeyEntersEditMode(e); 317using DataGridViewComboBoxColumn column = new() { CellTemplate = _dataGridViewComboBoxCell }; 321object? result = _dataGridViewComboBoxCell.ParseFormattedValue( 334using DataGridViewComboBoxColumn column = new() { CellTemplate = _dataGridViewComboBoxCell }; 339_dataGridViewComboBoxCell.TestAccessor().Dynamic.ValueMemberProperty = prop; 341object? result = _dataGridViewComboBoxCell.ParseFormattedValue("abc", style, null, null); 350using DataGridViewComboBoxColumn column = new() { CellTemplate = _dataGridViewComboBoxCell }; 354object? result = _dataGridViewComboBoxCell.ParseFormattedValue("test", style, null, null);