12 writes to SelectedValue
System.Windows.Forms.Tests (12)
System\Windows\Forms\ListControlTests.cs (12)
1926
control.
SelectedValue
= "StringValue";
1932
control.
SelectedValue
= "StringValue";
1959
control.
SelectedValue
= value;
1965
control.
SelectedValue
= value;
1984
control.
SelectedValue
= "selected";
1990
control.
SelectedValue
= "selected";
2004
SelectedValue
= value
2039
control.
SelectedValue
= "StringValue";
2044
control.
SelectedValue
= "StringValue";
2050
control.
SelectedValue
= "StringValue";
2067
Assert.Throws<ArgumentNullException>("key", () => control.
SelectedValue
= null);
2085
Assert.Throws<InvalidOperationException>(() => control.
SelectedValue
= value);
18 references to SelectedValue
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
23
[DefaultBindingProperty(nameof(
SelectedValue
))]
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
11
[LookupBindingProperties(nameof(DataSource), nameof(DisplayMember), nameof(ValueMember), nameof(
SelectedValue
))]
System.Windows.Forms.Tests (16)
System\Windows\Forms\ComboBoxTests.cs (1)
114
Assert.Null(control.
SelectedValue
);
System\Windows\Forms\ListBoxTests.cs (1)
108
Assert.Null(control.
SelectedValue
);
System\Windows\Forms\ListControlTests.cs (14)
95
Assert.Null(control.
SelectedValue
);
1928
Assert.Equal("StringValue", control.
SelectedValue
);
1934
Assert.Equal("StringValue", control.
SelectedValue
);
1961
Assert.Null(control.
SelectedValue
);
1967
Assert.Null(control.
SelectedValue
);
1986
Assert.Null(control.
SelectedValue
);
1992
Assert.Null(control.
SelectedValue
);
2007
Assert.Null(control.
SelectedValue
);
2013
Assert.Throws<IndexOutOfRangeException>(() => control.
SelectedValue
);
2040
Assert.Equal("StringValue", control.
SelectedValue
);
2045
Assert.Equal("StringValue", control.
SelectedValue
);
2051
Assert.Equal("StringValue", control.
SelectedValue
);
2069
Assert.Null(control.
SelectedValue
);
2087
Assert.Throws<IndexOutOfRangeException>(() => control.
SelectedValue
);