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:
authorgaryb <garyb@system1.(none)>2012-10-11 19:17:54 +0400
committergaryb <garyb@system1.(none)>2012-10-11 19:17:54 +0400
commit47227f82afd6bb6c348bcac8e08de7b39066601a (patch)
treeec0ca287578533a8d3ede0bd89fcd80835a5f4e4 /mcs/class/Managed.Windows.Forms/Test
parent74ebbedf7902b6ff31541bf266bde8eca45a0809 (diff)
[Not Resources Related] Fixed buggy tests breaking the test build.
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/Test')
-rw-r--r--mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs14
1 files changed, 10 insertions, 4 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 c4270bf65a1..cb258550014 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
@@ -790,8 +790,8 @@ namespace MonoTests.System.Windows.Forms
// Make sure the combo-box has the list of allowed
// items from the column.
- string items = string.Join (",", itemList);
- string expectedItems = string.Join (",", expectedItemList);
+ string items = string.Join (",", itemList.ToArray ());
+ string expectedItems = string.Join (",", expectedItemList.ToArray ());
Assert.AreEqual (expectedItems, items, "1-1");
// Make sure the combo-box has the right selected item.
@@ -2476,11 +2476,17 @@ namespace MonoTests.System.Windows.Forms
Assert.IsNull (dgvr3.DataGridView, "#3");
DataGridView dgv = new DataGridView ();
+ // dgv needs column and cell or throws error
+ DataGridViewColumn dgvc1 = new DataGridViewColumn ();
+ DataGridViewCell cell = new DataGridViewTextBoxCell ();
+ dgvc1.CellTemplate = cell;
+ dgv.Columns.Add (dgvc1);
+
dgv.Rows.Add (dgvr1);
dgv.Rows.Add (dgvr2);
dgv.Rows.Add (dgvr3);
-
- dgv.Clear ();
+ // was dgv.Clear () and that caused test build to fail
+ dgv.Rows.Clear (); // presumbly this was the intention?
Assert.IsNull (dgvr1.DataGridView, "#4");
Assert.IsNull (dgvr2.DataGridView, "#5");