14 writes to CalendarDimensions
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1606
private void ResetCalendarDimensions() =>
CalendarDimensions
= new Size(1, 1);
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
348
CalendarDimensions
= new Size { Width = 2, Height = 2 }
390
CalendarDimensions
= new Size { Width = 2, Height = 2 }
System\Windows\Forms\MonthCalendarTests.cs (11)
626
CalendarDimensions
= value
632
calendar.
CalendarDimensions
= value;
645
CalendarDimensions
= value
653
calendar.
CalendarDimensions
= value;
673
calendar.
CalendarDimensions
= value;
681
calendar.
CalendarDimensions
= value;
704
calendar.
CalendarDimensions
= value;
714
calendar.
CalendarDimensions
= value;
730
Assert.Throws<ArgumentOutOfRangeException>("x", () => calendar.
CalendarDimensions
= new Size(x, 1));
739
Assert.Throws<ArgumentOutOfRangeException>("y", () => calendar.
CalendarDimensions
= new Size(1, y));
4676
calendar.
CalendarDimensions
= new Size(2, 2);
18 references to CalendarDimensions
System.Windows.Forms.Tests (18)
System\Windows\Forms\MonthCalendarTests.cs (18)
41
Assert.Equal(new Size(1, 1), control.
CalendarDimensions
);
628
Assert.Equal(expected, calendar.
CalendarDimensions
);
633
Assert.Equal(expected, calendar.
CalendarDimensions
);
647
Assert.True(calendar.
CalendarDimensions
.Width is > 0 and <= 12);
648
Assert.True(calendar.
CalendarDimensions
.Height is > 0 and <= 12);
652
var previousCalendarDimensions = calendar.
CalendarDimensions
;
654
Assert.True(calendar.
CalendarDimensions
.Width is > 0 and <= 12);
655
Assert.True(calendar.
CalendarDimensions
.Height is > 0 and <= 12);
656
Assert.Equal(previousCalendarDimensions, calendar.
CalendarDimensions
);
674
Assert.Equal(expected, calendar.
CalendarDimensions
);
682
Assert.Equal(expected, calendar.
CalendarDimensions
);
705
Assert.True(calendar.
CalendarDimensions
.Width is > 0 and <= 12);
706
Assert.True(calendar.
CalendarDimensions
.Height is > 0 and <= 12);
713
var previousCalendarDimensions = calendar.
CalendarDimensions
;
715
Assert.True(calendar.
CalendarDimensions
.Width is > 0 and <= 12);
716
Assert.True(calendar.
CalendarDimensions
.Height is > 0 and <= 12);
717
Assert.Equal(previousCalendarDimensions, calendar.
CalendarDimensions
);
4680
calendar.
CalendarDimensions
.Should().Be(new Size(1, 1));