13 writes to TodayDate
System.Windows.Forms.Tests (12)
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
264monthCalendar.TodayDate = expectedTodayDate;
System\Windows\Forms\MonthCalendarTests.cs (11)
1064TodayDate = new DateTime(2019, 1, 30, 3, 4, 5, 6) 2859TodayDate = value 2866calendar.TodayDate = value; 2885calendar.TodayDate = value; 2894calendar.TodayDate = value; 2907calendar.TodayDate = calendar.MinDate.AddTicks(-1); 2911Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.TodayDate = calendar.MinDate.AddTicks(-1)); 2918calendar.TodayDate = calendar.MaxDate.AddTicks(1); 2922Assert.Throws<ArgumentOutOfRangeException>("value", () => calendar.TodayDate = calendar.MaxDate.AddDays(1)); 4514ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTodayDate(), () => calendar.TodayDate = DateTime.Now); 4541calendar.TodayDate = new DateTime(2000, 1, 1);
System.Windows.Forms.UI.IntegrationTests (1)
MonthCalendarTests.cs (1)
134calendar.TodayDate = givenDate;
13 references to TodayDate
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
563internal DateTime TodayDate => this.TryGetOwnerAs(out MonthCalendar? owner) ? owner.TodayDate : DateTime.Today;
System.Windows.Forms.Tests (12)
System\Windows\Forms\MonthCalendarTests.cs (12)
133Assert.Equal(DateTime.Now.Date, control.TodayDate); 2835Assert.Equal(DateTime.Now.Date, control.TodayDate); 2861Assert.Equal(value.Date, calendar.TodayDate); 2867Assert.Equal(value.Date, calendar.TodayDate); 2886Assert.Equal(value.Date, calendar.TodayDate); 2895Assert.Equal(value.Date, calendar.TodayDate); 2908Assert.Equal(calendar.MinDate.AddTicks(-1).Date, calendar.TodayDate); 2919Assert.Equal(calendar.MaxDate.AddTicks(1).Date, calendar.TodayDate); 4548DateTime todayDateBeforeReset = calendar.TodayDate; 4550DateTime todayDateAfterReset = calendar.TodayDate; 4567DateTime todayDateBeforeReset = calendar.TodayDate; 4569DateTime todayDateAfterReset = calendar.TodayDate;