21 references to GetError
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDownTests.cs (2)
53
errorProvider.
GetError
(dropDownMaskedTextBox).Should().Be(string.Empty);
57
errorProvider.
GetError
(dropDownMaskedTextBox).Should().Contain(SR.MaskedTextBoxHintDigitExpected);
System.Windows.Forms.Tests (19)
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
94
string actual = _errorProvider.
GetError
(_control1);
102
actual = _errorProvider.
GetError
(_control2);
System\Windows\Forms\ErrorProviderTests.cs (17)
873
Assert.Equal("error", provider.
GetError
(control));
876
Assert.Empty(provider.
GetError
(control));
879
Assert.Empty(provider.
GetError
(control));
896
Assert.Equal("error", provider.
GetError
(control));
900
Assert.Empty(provider.
GetError
(control));
904
Assert.Empty(provider.
GetError
(control));
926
Assert.Equal("error", provider.
GetError
(control));
930
Assert.Equal(expectedError, provider.
GetError
(control));
934
Assert.Equal(expectedError, provider.
GetError
(control));
954
Assert.Empty(provider.
GetError
(control));
957
Assert.Empty(provider.
GetError
(control));
964
Assert.Throws<ArgumentNullException>("control", () => provider.
GetError
(null));
1048
Assert.Equal(expected, provider.
GetError
(control));
1052
Assert.Equal(expected, provider.
GetError
(control));
1056
Assert.Empty(provider.
GetError
(control));
1148
Assert.Equal(expected, provider.
GetError
(control));
1308
_ = provider.
GetError
(control1);