1 write to _picker
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (1)
16
_picker
= new();
16 references to _picker
System.Windows.Forms.Design.Tests (16)
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (16)
19
public void Dispose() =>
_picker
.Dispose();
24
_picker
.Controls.Count.Should().Be(1);
25
_picker
.Controls[0].Should().BeOfType<ListBox>().Which.Should().Match<ListBox>(listBox =>
34
_picker
.BackColor.Should().Be(SystemColors.Control);
35
_picker
.ActiveControl.Should().Be(
_picker
.Controls[0]);
40
_picker
.SelectedType.Should().BeNull();
50
_picker
.Start(editorServiceMock.Object, discoveryServiceMock.Object, typeof(DataGridViewTextBoxColumn));
52
var listBox =
_picker
.TestAccessor.Dynamic._typesListBox;
60
var accessor =
_picker
.TestAccessor.Dynamic;
63
_picker
.Width.Should().BeGreaterThanOrEqualTo(100);
64
_picker
.Height.Should().BeGreaterThanOrEqualTo(90);
75
_picker
.Start(editorServiceMock.Object, discoveryServiceMock.Object, typeof(DataGridViewTextBoxColumn));
76
var listBox =
_picker
.TestAccessor.Dynamic._typesListBox;
79
_picker
.TestAccessor.Dynamic.typesListBox_SelectedIndexChanged(listBox, EventArgs.Empty);
81
_picker
.SelectedType.Should().Be(typeof(DataGridViewTextBoxColumn));