diff options
author | Steven Boswell II <ulatekh@yahoo.com> | 2012-06-09 21:00:27 +0400 |
---|---|---|
committer | Thomas Goldstein <stifu@free.fr> | 2012-06-09 21:00:52 +0400 |
commit | f2b0672d8c65ccc08582d1b24783630e1237bcef (patch) | |
tree | d1144c9addb39aa1059b06e7d068d7579401f1c6 /mcs/class/Managed.Windows.Forms/Test | |
parent | 641ae7303320c2bad8ff83f9b5f9fc0d285b6b0e (diff) |
Do not throw an exception when trying to remove a ComboBox item that doesn't exist, to match .NET
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/Test')
-rw-r--r-- | mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs index e447cd0d88f..1c32e4135c1 100644 --- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs +++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs @@ -1593,6 +1593,8 @@ namespace MonoTests.System.Windows.Forms Assert.AreEqual (1, col.Count, "#1"); col.Remove (null); Assert.AreEqual (1, col.Count, "#2"); + col.Remove ("Item3"); + Assert.AreEqual (1, col.Count, "#3"); } [Test] |