1 write to _maskedTextBox
System.Windows.Forms.Tests (1)
MaskedTextBoxTests.cs (1)
19
_maskedTextBox
= new();
60 references to _maskedTextBox
System.Windows.Forms.Tests (60)
MaskedTextBoxTests.cs (60)
24
_maskedTextBox
.Dispose();
30
_maskedTextBox
.Should().NotBeNull();
33
_maskedTextBox
.BeepOnError.Should().BeFalse();
34
_maskedTextBox
.AsciiOnly.Should().BeFalse();
35
_maskedTextBox
.Culture.Should().Be(CultureInfo.CurrentCulture);
36
_maskedTextBox
.AcceptsTab.Should().BeFalse();
37
_maskedTextBox
.CanUndo.Should().BeFalse();
38
_maskedTextBox
.WordWrap.Should().BeFalse();
39
_maskedTextBox
.Multiline.Should().BeFalse();
40
_maskedTextBox
.ResetOnSpace.Should().BeTrue();
41
_maskedTextBox
.SkipLiterals.Should().BeTrue();
42
_maskedTextBox
.ValidatingType.Should().BeNull();
43
_maskedTextBox
.TextAlign.Should().Be(HorizontalAlignment.Left);
44
_maskedTextBox
.FormatProvider.Should().Be(null);
45
_maskedTextBox
.ResetOnPrompt.Should().BeTrue();
46
_maskedTextBox
.ValidatingType.Should().BeNull();
47
_maskedTextBox
.PromptChar.Should().Be('_');
48
_maskedTextBox
.GetLineFromCharIndex(2).Should().Be(0);
49
_maskedTextBox
.GetFirstCharIndexFromLine(100).Should().Be(0);
50
_maskedTextBox
.GetFirstCharIndexOfCurrentLine().Should().Be(0);
51
_maskedTextBox
.PasswordChar.Should().Be('\0');
52
_maskedTextBox
.RejectInputOnFirstFailure.Should().BeFalse();
53
_maskedTextBox
.Text.Should().Be(string.Empty);
54
_maskedTextBox
.UseSystemPasswordChar.Should().BeFalse();
56
_maskedTextBox
.IsHandleCreated.Should().BeFalse();
709
TestProperty(
_maskedTextBox
, nameof(MaskedTextBox.RejectInputOnFirstFailure), value);
710
TestProperty(
_maskedTextBox
, nameof(MaskedTextBox.ResetOnPrompt), value);
729
_maskedTextBox
.Text = "Hello, World!";
730
_maskedTextBox
.CreateControl();
733
Point position =
_maskedTextBox
.GetPositionFromCharIndex(4);
737
char resultChar =
_maskedTextBox
.GetCharFromPosition(position);
741
int resultIndex =
_maskedTextBox
.GetCharIndexFromPosition(position);
753
sender.Should().Be(
_maskedTextBox
);
758
_maskedTextBox
.ValidatingType = validatingType;
759
_maskedTextBox
.ValidatingType.Should().Be(validatingType);
760
_maskedTextBox
.IsHandleCreated.Should().BeFalse();
762
_maskedTextBox
.Text = text;
763
_maskedTextBox
.CreateControl();
765
_maskedTextBox
.TypeValidationCompleted += handler;
766
object result =
_maskedTextBox
.ValidateText();
770
_maskedTextBox
.TypeValidationCompleted -= handler;
771
_maskedTextBox
.ValidateText();
786
_maskedTextBox
.PasswordChar = originalValue;
787
_maskedTextBox
.PasswordChar.Should().Be(originalValue);
789
_maskedTextBox
.PasswordChar = value;
790
_maskedTextBox
.PasswordChar.Should().Be(value);
794
_maskedTextBox
.PromptChar = originalValue;
795
_maskedTextBox
.PromptChar.Should().Be(originalValue);
797
_maskedTextBox
.PromptChar = value;
798
_maskedTextBox
.PromptChar.Should().Be(value);
805
Action act = () =>
_maskedTextBox
.PromptChar = '\0';
808
Action act2 = () =>
_maskedTextBox
.PasswordChar = '\t';
815
_maskedTextBox
.PromptChar = 'A';
816
Action act = () =>
_maskedTextBox
.PasswordChar = 'A';
823
_maskedTextBox
.Mask = "00000";
824
_maskedTextBox
.UseSystemPasswordChar = true;
825
_maskedTextBox
.PasswordChar = 'A';
827
if (
_maskedTextBox
.MaskedTextProvider is not null)
829
_maskedTextBox
.PasswordChar.Should().Be('●');
830
_maskedTextBox
.MaskedTextProvider.PasswordChar.Should().Be('●');