Author: igorz
Date: 2007-02-19 04:09:36 -0500 (Mon, 19 Feb 2007)
New Revision: 73097
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ImageMapTest.cs
Log:
2007-02-19 Igor Zelmanovich <[EMAIL PROTECTED]>
* GridViewTest:
new test were added
Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
2007-02-19 07:59:31 UTC (rev 73096)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
2007-02-19 09:09:36 UTC (rev 73097)
@@ -1,3 +1,8 @@
+2007-02-19 Igor Zelmanovich <[EMAIL PROTECTED]>
+
+ * GridViewTest:
+ new test were added
+
2007-02-13 Adar Wesley <[EMAIL PROTECTED]>
* ObjectDataSourceViewTest.cs: removed NotWorking attribute from a
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
2007-02-19 07:59:31 UTC (rev 73096)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
2007-02-19 09:09:36 UTC (rev 73097)
@@ -865,17 +865,39 @@
protected void Gridview_sorting (object sender,
GridViewSortEventArgs e)
{
sortingaction = true;
- }
+ }
+
+ [Test]
+ public void GridView_IsBindableType ()
+ {
+ Type [] types = new Type [] {
+ typeof(Boolean),
+ typeof(Byte),
+ typeof(Char),
+ typeof(DateTime),
+ typeof(Decimal),
+ typeof(Double),
+ typeof(Guid),
+ typeof(Int16),
+ typeof(Int32),
+ typeof(Int64),
+ typeof(SByte),
+ typeof(Single),
+ typeof(String),
+ typeof(UInt16),
+ typeof(UInt32),
+ typeof(UInt64)
+ };
+
+ GridView g = new GridView ();
+ foreach (Type type in types)
+ Assert.AreEqual (true, g.IsBindableType (type),
type.ToString ());
+
+ Assert.AreEqual (false, g.IsBindableType (typeof
(Enum)), "test");
+ Assert.AreEqual (false, g.IsBindableType (typeof
(Object)), "test");
+ }
[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");
- }
-
- [Test]
public void GridView_CreateAutoGeneratedColumn ()
{
PokerGridView g = new PokerGridView ();
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ImageMapTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ImageMapTest.cs
2007-02-19 07:59:31 UTC (rev 73096)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ImageMapTest.cs
2007-02-19 09:09:36 UTC (rev 73097)
@@ -90,7 +90,11 @@
[TestFixtureSetUp]
public void SetUp ()
{
+#if VISUAL_STUDIO
+ WebTest.CopyResource (GetType (),
"MonoTests.System.Web.UI.WebControls.Resources.NoEventValidation.aspx",
"NoEventValidation.aspx");
+#else
WebTest.CopyResource (GetType (),
"NoEventValidation.aspx", "NoEventValidation.aspx");
+#endif
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches