Base:
property
Text
System.Windows.Forms.Control.Text
3 writes to Text
System.Windows.Forms.Tests (3)
System\Windows\Forms\DateTimePickerTests.cs (3)
473
_dateTimePicker.
Text
= validDateString;
476
_dateTimePicker.
Text
= null;
479
_dateTimePicker.
Text
= string.Empty;
15 references to Text
System.Windows.Forms (2)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
887
string oldText =
Text
;
904
if (!oldText.Equals(
Text
))
System.Windows.Forms.Tests (13)
System\Windows\Forms\DateTimePickerTests.cs (13)
115
Assert.Equal(string.Empty, control.
Text
);
342
_dateTimePicker.
Text
.Should().Be("2021/12/31");
347
_dateTimePicker.
Text
.Should().Be("12/31/2021");
474
_dateTimePicker.
Text
.Should().Be(DateTime.Parse(validDateString, CultureInfo.CurrentCulture).ToString("dddd, MMMM d, yyyy"));
477
_dateTimePicker.
Text
.Should().Be(DateTime.Parse(DateTime.Now.Date.ToString(), CultureInfo.CurrentCulture).ToString("dddd, MMMM d, yyyy"));
480
_dateTimePicker.
Text
.Should().Be(DateTime.Parse(DateTime.Now.Date.ToString(), CultureInfo.CurrentCulture).ToString("dddd, MMMM d, yyyy"));
921
Assert.Equal(dt.ToLongDateString(), dateTimePicker.
Text
);
934
Assert.Equal(dt.ToShortDateString(), dateTimePicker.
Text
);
947
Assert.Equal(dt.ToLongTimeString(), dateTimePicker.
Text
);
961
Assert.Equal(dt.ToLongDateString(), dateTimePicker.
Text
);
975
Assert.Equal(dt.ToShortDateString(), dateTimePicker.
Text
);
989
Assert.Equal(dt.ToLongTimeString(), dateTimePicker.
Text
);
1003
Assert.Equal(dt.ToShortTimeString(), dateTimePicker.
Text
);