Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Boswell II <ulatekh@yahoo.com>2012-06-09 21:00:27 +0400
committerThomas Goldstein <stifu@free.fr>2012-06-09 21:00:52 +0400
commitf2b0672d8c65ccc08582d1b24783630e1237bcef (patch)
treed1144c9addb39aa1059b06e7d068d7579401f1c6 /mcs/class/Managed.Windows.Forms/Test
parent641ae7303320c2bad8ff83f9b5f9fc0d285b6b0e (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.cs2
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]