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