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)
887string oldText = Text; 904if (!oldText.Equals(Text))
System.Windows.Forms.Tests (13)
System\Windows\Forms\DateTimePickerTests.cs (13)
115Assert.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")); 921Assert.Equal(dt.ToLongDateString(), dateTimePicker.Text); 934Assert.Equal(dt.ToShortDateString(), dateTimePicker.Text); 947Assert.Equal(dt.ToLongTimeString(), dateTimePicker.Text); 961Assert.Equal(dt.ToLongDateString(), dateTimePicker.Text); 975Assert.Equal(dt.ToShortDateString(), dateTimePicker.Text); 989Assert.Equal(dt.ToLongTimeString(), dateTimePicker.Text); 1003Assert.Equal(dt.ToShortTimeString(), dateTimePicker.Text);