17 writes to SelectionStart
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
141control.SelectionStart = new DateTime(2021, 1, 1);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
139control.SelectionStart = new DateTime(2021, 1, 1);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (3)
152control.SelectionStart = new DateTime(2021, 6, 16); // Set a date to have a stable test case 182SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case 225SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (2)
130SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case 174SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (1)
165SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\MonthCalendarTests.cs (9)
1961SelectionStart = value 1968calendar.SelectionStart = value; 1987calendar.SelectionStart = value; 1996calendar.SelectionStart = value; 2009calendar.SelectionStart = calendar.MinDate.AddTicks(-1); 2013Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionStart = calendar.MinDate.AddTicks(-1)); 2020calendar.SelectionStart = calendar.MaxDate.AddTicks(1); 2024Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionStart = calendar.MaxDate.AddTicks(1)); 4370monthCalendar.SelectionStart = new DateTime(2021, 6, 16);
50 references to SelectionStart
System.Windows.Forms (3)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
712get => new(SelectionStart, SelectionEnd);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (2)
589return $"{owner.SelectionStart:y}"; 596return $"{owner.SelectionStart:yyyy}";
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
76Value = _monthCalendar.SelectionStart;
System.Windows.Forms.Tests (44)
System\Windows\Forms\MonthCalendarTests.cs (44)
120Assert.Equal(DateTime.Now.Date, control.SelectionStart); 1329Assert.Equal(expectedSelection, calendar.SelectionStart); 1336Assert.Equal(expectedSelection, calendar.SelectionStart); 1356Assert.Equal(expectedSelection, calendar.SelectionStart); 1366Assert.Equal(expectedSelection, calendar.SelectionStart); 1462Assert.Equal(expectedSelection, calendar.SelectionStart); 1469Assert.Equal(expectedSelection, calendar.SelectionStart); 1489Assert.Equal(expectedSelection, calendar.SelectionStart); 1499Assert.Equal(expectedSelection, calendar.SelectionStart); 1963Assert.Equal(value, calendar.SelectionStart); 1969Assert.Equal(value, calendar.SelectionStart); 1988Assert.Equal(value, calendar.SelectionStart); 1997Assert.Equal(value, calendar.SelectionStart); 2010Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.SelectionStart); 2021Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.SelectionStart); 2046Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2052Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2071Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2080Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2144Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2153Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2175Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2187Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2201Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.SelectionStart); 2205Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.SelectionStart); 2218Assert.Equal(calendar.MaxDate, calendar.SelectionStart); 2222Assert.Equal(calendar.MaxDate, calendar.SelectionStart); 3972Assert.Equal(date, calendar.SelectionStart); 3980Assert.Equal(date, calendar.SelectionStart); 4001Assert.Equal(date, calendar.SelectionStart); 4012Assert.Equal(date, calendar.SelectionStart); 4025Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.SelectionStart); 4037Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.SelectionStart); 4079Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4087Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4108Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4119Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4132Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.SelectionStart); 4136Assert.Equal(calendar.MinDate, calendar.SelectionStart); 4149Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.SelectionStart); 4153Assert.Equal(calendar.MaxDate, calendar.SelectionStart); 4392monthCalendar.SelectionStart.Should().Be(startDate); 4440monthCalendar.SelectionStart.Should().Be(expectedStart); 4642cal => (cal.SelectionStart, cal.SelectionEnd),
System.Windows.Forms.UI.IntegrationTests (2)
MonthCalendarTests.cs (2)
96Assert.Equal(newDate.Date, calendar.SelectionStart.Date); 118Assert.Equal(newDate.Date, calendar.SelectionStart.Date);