17 writes to SelectionStart
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
139
control.
SelectionStart
= new DateTime(2021, 1, 1);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
137
control.
SelectionStart
= new DateTime(2021, 1, 1);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (3)
150
control.
SelectionStart
= new DateTime(2021, 6, 16); // Set a date to have a stable test case
180
SelectionStart
= new DateTime(2022, 10, 1) // Set a date to have a stable test case
223
SelectionStart
= new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (2)
128
SelectionStart
= new DateTime(2022, 10, 1) // Set a date to have a stable test case
172
SelectionStart
= new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (1)
163
SelectionStart
= new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\MonthCalendarTests.cs (9)
1959
SelectionStart
= value
1966
calendar.
SelectionStart
= value;
1985
calendar.
SelectionStart
= value;
1994
calendar.
SelectionStart
= value;
2007
calendar.
SelectionStart
= calendar.MinDate.AddTicks(-1);
2011
Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.
SelectionStart
= calendar.MinDate.AddTicks(-1));
2018
calendar.
SelectionStart
= calendar.MaxDate.AddTicks(1);
2022
Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.
SelectionStart
= calendar.MaxDate.AddTicks(1));
4368
monthCalendar.
SelectionStart
= new DateTime(2021, 6, 16);
50 references to SelectionStart
System.Windows.Forms (3)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
712
get => new(
SelectionStart
, SelectionEnd);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (2)
589
return $"{owner.
SelectionStart
:y}";
596
return $"{owner.
SelectionStart
:yyyy}";
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
76
Value = _monthCalendar.
SelectionStart
;
System.Windows.Forms.Tests (44)
System\Windows\Forms\MonthCalendarTests.cs (44)
118
Assert.Equal(DateTime.Now.Date, control.
SelectionStart
);
1327
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1334
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1354
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1364
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1460
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1467
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1487
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1497
Assert.Equal(expectedSelection, calendar.
SelectionStart
);
1961
Assert.Equal(value, calendar.
SelectionStart
);
1967
Assert.Equal(value, calendar.
SelectionStart
);
1986
Assert.Equal(value, calendar.
SelectionStart
);
1995
Assert.Equal(value, calendar.
SelectionStart
);
2008
Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.
SelectionStart
);
2019
Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.
SelectionStart
);
2044
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2050
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2069
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2078
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2142
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2151
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2173
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2185
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
2199
Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.
SelectionStart
);
2203
Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.
SelectionStart
);
2216
Assert.Equal(calendar.MaxDate, calendar.
SelectionStart
);
2220
Assert.Equal(calendar.MaxDate, calendar.
SelectionStart
);
3970
Assert.Equal(date, calendar.
SelectionStart
);
3978
Assert.Equal(date, calendar.
SelectionStart
);
3999
Assert.Equal(date, calendar.
SelectionStart
);
4010
Assert.Equal(date, calendar.
SelectionStart
);
4023
Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.
SelectionStart
);
4035
Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.
SelectionStart
);
4077
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
4085
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
4106
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
4117
Assert.Equal(expectedSelectionStart, calendar.
SelectionStart
);
4130
Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.
SelectionStart
);
4134
Assert.Equal(calendar.MinDate, calendar.
SelectionStart
);
4147
Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.
SelectionStart
);
4151
Assert.Equal(calendar.MaxDate, calendar.
SelectionStart
);
4390
monthCalendar.
SelectionStart
.Should().Be(startDate);
4438
monthCalendar.
SelectionStart
.Should().Be(expectedStart);
4640
cal => (cal.
SelectionStart
, cal.SelectionEnd),
System.Windows.Forms.UI.IntegrationTests (2)
MonthCalendarTests.cs (2)
96
Assert.Equal(newDate.Date, calendar.
SelectionStart
.Date);
118
Assert.Equal(newDate.Date, calendar.
SelectionStart
.Date);