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:
authorsesef <sesef@sesef.pl>2012-08-03 00:17:16 +0400
committersesef <sesef@sesef.pl>2012-08-03 00:17:16 +0400
commit50d7a73dffb7b0cea0cf15bdc701dafd6302a7bf (patch)
treec0e18abb8b0927b473a2eedf2ddb4ac572b5aac3 /mcs/class/Managed.Windows.Forms/Test
parent8b4cb822ad4f0102f4058070876ac4a104aa8852 (diff)
https://bugzilla.xamarin.com/show_bug.cgi?id=3125
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/Test')
-rw-r--r--mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs
index ce0b32c9ca0..b9e06b1abc1 100644
--- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs
+++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs
@@ -2463,6 +2463,29 @@ namespace MonoTests.System.Windows.Forms
catch (ArgumentOutOfRangeException) {
}
}
+
+ [Test] // Xamarin bug 3125
+ public void TestRemoveBug3125()
+ {
+ DataGridViewRow dgvr1 = new DataGridViewRow();
+ DataGridViewRow dgvr2 = new DataGridViewRow();
+ DataGridViewRow dgvr3 = new DataGridViewRow();
+
+ Assert.IsNull (dgvr1.DataGridView, "#1");
+ Assert.IsNull (dgvr2.DataGridView, "#2");
+ Assert.IsNull (dgvr3.DataGridView, "#3");
+
+ DataGridView dgv = new DataGridView();
+ dgv.Rows.Add(dgvr1);
+ dgv.Rows.Add(dgvr2);
+ dgv.Rows.Add(dgvr3);
+
+ dgv.Clear();
+
+ Assert.IsNull(dgvr1.DataGridView, "#4");
+ Assert.IsNull(dgvr2.DataGridView, "#5");
+ Assert.IsNull(dgvr3.DataGridView, "#6");
+ }
}
[TestFixture]