Author: jackson
Date: 2006-05-30 18:42:05 -0400 (Tue, 30 May 2006)
New Revision: 61292
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
Log:
Some more tests.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
2006-05-30 21:38:08 UTC (rev 61291)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/CurrencyManagerTest.cs
2006-05-30 22:42:05 UTC (rev 61292)
@@ -579,6 +579,36 @@
cm.CancelCurrentEdit ();
}
+
+ [Test]
+ public void CheckPositionOfRelatedSibling1 ()
+ {
+ DataSet data_source = CreateRelatedDataSet ();
+ BindingContext bc = new BindingContext ();
+ CurrencyManager cm = bc [data_source,
"Table1.Relation"] as CurrencyManager;
+ CurrencyManager scm = bc [data_source, "Table1"] as
CurrencyManager;
+
+ cm.Position++;
+ cm.Position++;
+
+ // position is not updated
+ Assert.AreEqual (0, scm.Position, "#8");
+ }
+
+ [Test]
+ public void CheckPositionOfRelatedSibling2 ()
+ {
+ DataSet data_source = CreateRelatedDataSet ();
+ BindingContext bc = new BindingContext ();
+ CurrencyManager cm = bc [data_source,
"Table1.Relation"] as CurrencyManager;
+ CurrencyManager scm = bc [data_source, "Table1"] as
CurrencyManager;
+
+ Assert.AreEqual (0, cm.Position, "#1");
+
+ scm.Position++;
+
+ Assert.AreEqual (0, cm.Position, "#2");
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches