17 writes to SelectionStart
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
139control.SelectionStart = new DateTime(2021, 1, 1);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
137control.SelectionStart = new DateTime(2021, 1, 1);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (3)
150control.SelectionStart = new DateTime(2021, 6, 16); // Set a date to have a stable test case 180SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case 223SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (2)
128SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case 172SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (1)
163SelectionStart = new DateTime(2022, 10, 1) // Set a date to have a stable test case
System\Windows\Forms\MonthCalendarTests.cs (9)
1959SelectionStart = value 1966calendar.SelectionStart = value; 1985calendar.SelectionStart = value; 1994calendar.SelectionStart = value; 2007calendar.SelectionStart = calendar.MinDate.AddTicks(-1); 2011Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionStart = calendar.MinDate.AddTicks(-1)); 2018calendar.SelectionStart = calendar.MaxDate.AddTicks(1); 2022Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.SelectionStart = calendar.MaxDate.AddTicks(1)); 4368monthCalendar.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)
118Assert.Equal(DateTime.Now.Date, control.SelectionStart); 1327Assert.Equal(expectedSelection, calendar.SelectionStart); 1334Assert.Equal(expectedSelection, calendar.SelectionStart); 1354Assert.Equal(expectedSelection, calendar.SelectionStart); 1364Assert.Equal(expectedSelection, calendar.SelectionStart); 1460Assert.Equal(expectedSelection, calendar.SelectionStart); 1467Assert.Equal(expectedSelection, calendar.SelectionStart); 1487Assert.Equal(expectedSelection, calendar.SelectionStart); 1497Assert.Equal(expectedSelection, calendar.SelectionStart); 1961Assert.Equal(value, calendar.SelectionStart); 1967Assert.Equal(value, calendar.SelectionStart); 1986Assert.Equal(value, calendar.SelectionStart); 1995Assert.Equal(value, calendar.SelectionStart); 2008Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.SelectionStart); 2019Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.SelectionStart); 2044Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2050Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2069Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2078Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2142Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2151Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2173Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2185Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 2199Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.SelectionStart); 2203Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.SelectionStart); 2216Assert.Equal(calendar.MaxDate, calendar.SelectionStart); 2220Assert.Equal(calendar.MaxDate, calendar.SelectionStart); 3970Assert.Equal(date, calendar.SelectionStart); 3978Assert.Equal(date, calendar.SelectionStart); 3999Assert.Equal(date, calendar.SelectionStart); 4010Assert.Equal(date, calendar.SelectionStart); 4023Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.SelectionStart); 4035Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.SelectionStart); 4077Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4085Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4106Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4117Assert.Equal(expectedSelectionStart, calendar.SelectionStart); 4130Assert.Equal(calendar.MinDate.AddTicks(-1), calendar.SelectionStart); 4134Assert.Equal(calendar.MinDate, calendar.SelectionStart); 4147Assert.Equal(calendar.MaxDate.AddTicks(1), calendar.SelectionStart); 4151Assert.Equal(calendar.MaxDate, calendar.SelectionStart); 4390monthCalendar.SelectionStart.Should().Be(startDate); 4438monthCalendar.SelectionStart.Should().Be(expectedStart); 4640cal => (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);