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