Author: krasnov
Date: 2006-07-17 06:57:07 -0400 (Mon, 17 Jul 2006)
New Revision: 62668

Modified:
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
Log:
* GridViewTest.cs: added new test



Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2006-07-17 09:53:51 UTC (rev 62667)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2006-07-17 10:57:07 UTC (rev 62668)
@@ -1,3 +1,7 @@
+2006-07-17 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+       * GridViewTest.cs: added new test
+
 2006-07-16 Vladimir Krasnov <[EMAIL PROTECTED]>
 
        * BoundFieldTest.cs: added new test

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs   
2006-07-17 09:53:51 UTC (rev 62667)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs   
2006-07-17 10:57:07 UTC (rev 62668)
@@ -474,8 +474,9 @@
                        g.DataSource = myds;
                        g.DataBind ();
                        Assert.AreEqual (6, g.Rows.Count, "DataBind");
-               }
-
+               }
+
+               bool rowcreatedchecker;
                bool deleteitemchecker;
                bool sortingaction;
 
@@ -494,8 +495,34 @@
                protected void RowDeletingHandler (object sender, 
GridViewDeleteEventArgs e)
                {
                        deleteitemchecker = true;
-               }
-
+               }
+
+               [Test]
+               [Category ("NotWorking")]
+               public void GridView_RowCreated ()
+               {
+                       GridView g = new GridView ();
+                       g.RowCreated += new GridViewRowEventHandler 
(RowCreatedHandler);
+
+                       Assert.AreEqual (false, rowcreatedchecker, 
"RowCreated#1");
+
+                       ArrayList myds = new ArrayList ();
+                       myds.Add ("Norway");
+                       myds.Add ("Sweden");
+                       myds.Add ("France");
+                       myds.Add ("Italy");
+
+                       g.DataSource = myds;
+                       g.DataBind ();
+                       Assert.AreEqual (true, rowcreatedchecker, 
"RowCreated#2");
+               }
+
+               protected void RowCreatedHandler (object sender, 
GridViewRowEventArgs e)
+               {
+                       if (e.Row.Cells.Count > 0)
+                               rowcreatedchecker = true;
+               }
+               
                [Test]
                public void GridView_Sort ()
                {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to