2007-02-19 Igor Zelmanovich <igorz@mainsoft.com>
authorIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Mon, 19 Feb 2007 09:09:36 +0000 (09:09 -0000)
committerIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Mon, 19 Feb 2007 09:09:36 +0000 (09:09 -0000)
* GridViewTest:
new test were added

svn path=/trunk/mcs/; revision=73097

mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
mcs/class/System.Web/Test/System.Web.UI.WebControls/ImageMapTest.cs

index 5cb42abe5c9f96279ab11f5cfa0ec3bc0b0dc40d..387b5601e181c99e5fd6241cfed5d2665126f173 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-19 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * GridViewTest:
+       new test were added      
+
 2007-02-13  Adar Wesley <adarw@mainsoft.com>
 
         * ObjectDataSourceViewTest.cs: removed NotWorking attribute from a
index fca1ce9cf03f04bd7534b1fbd9b7b61fea09a91a..a29b7d5702188f5b5408927b6a03db21728619e3 100644 (file)
@@ -865,15 +865,37 @@ namespace MonoTests.System.Web.UI.WebControls
                protected void Gridview_sorting (object sender, GridViewSortEventArgs e)
                {
                        sortingaction = true;
-               }
-
-               [Test]
-               public void GridView_IsBindableType ()
-               {
-                       PokerGridView g = new PokerGridView ();
-                       Assert.AreEqual (true, g.IsBindableType (typeof (Int32)), "test");
-                       Assert.AreEqual (false, g.IsBindableType (typeof (Enum)), "test");
-               }
+               }\r
+\r
+               [Test]\r
+               public void GridView_IsBindableType ()\r
+               {\r
+                       Type [] types = new Type [] {\r
+                               typeof(Boolean), \r
+                               typeof(Byte),\r
+                               typeof(Char),\r
+                               typeof(DateTime),\r
+                               typeof(Decimal),\r
+                               typeof(Double),\r
+                               typeof(Guid),\r
+                               typeof(Int16),\r
+                               typeof(Int32),\r
+                               typeof(Int64),\r
+                               typeof(SByte),\r
+                               typeof(Single),\r
+                               typeof(String),\r
+                               typeof(UInt16),\r
+                               typeof(UInt32),\r
+                               typeof(UInt64)\r
+                                };\r
+\r
+                       GridView g = new GridView ();\r
+                       foreach (Type type in types)\r
+                               Assert.AreEqual (true, g.IsBindableType (type), type.ToString ());\r
+\r
+                       Assert.AreEqual (false, g.IsBindableType (typeof (Enum)), "test");\r
+                       Assert.AreEqual (false, g.IsBindableType (typeof (Object)), "test");\r
+               }\r
 
                [Test]
                public void GridView_CreateAutoGeneratedColumn ()
index 1e1f3da119a7dbf23776e9f0ddf4b0c588881328..3b740ec6ca0e1c6d0d635ffe41ef32bd6c23e81a 100644 (file)
@@ -90,7 +90,11 @@ namespace MonoTests.System.Web.UI.WebControls
                [TestFixtureSetUp]\r
                public void SetUp ()\r
                {\r
+#if VISUAL_STUDIO\r
+                       WebTest.CopyResource (GetType (), "MonoTests.System.Web.UI.WebControls.Resources.NoEventValidation.aspx", "NoEventValidation.aspx");\r
+#else\r
                        WebTest.CopyResource (GetType (), "NoEventValidation.aspx", "NoEventValidation.aspx");\r
+#endif\r
                }\r
 \r
 \r