summaryrefslogtreecommitdiff
path: root/mcs/class/System/Test/System.ComponentModel/BindingListTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/Test/System.ComponentModel/BindingListTest.cs')
-rw-r--r--mcs/class/System/Test/System.ComponentModel/BindingListTest.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/System/Test/System.ComponentModel/BindingListTest.cs b/mcs/class/System/Test/System.ComponentModel/BindingListTest.cs
index 88be568f42..92a6253db9 100644
--- a/mcs/class/System/Test/System.ComponentModel/BindingListTest.cs
+++ b/mcs/class/System/Test/System.ComponentModel/BindingListTest.cs
@@ -629,6 +629,16 @@ namespace MonoTests.System.ComponentModel
Assert.IsTrue (added, "ItemAdded");
Assert.IsTrue (changed, "ItemChanged");
}
+
+ [Test] // https://bugzilla.xamarin.com/show_bug.cgi?id=16902
+ public void Bug16902 ()
+ {
+ var list = new BindingList<Item> ();
+ list.Insert (0, null);
+ var count = list.Count;
+
+ Assert.AreEqual (1, count, "1");
+ }
}
}