Author: toshok
Date: 2006-01-09 17:17:31 -0500 (Mon, 09 Jan 2006)
New Revision: 55269

Modified:
   
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/SoapExtensionTypeElementTest.cs
   
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/TypeElementTest.cs
Log:
some new tests

Modified: 
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/SoapExtensionTypeElementTest.cs
===================================================================
--- 
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/SoapExtensionTypeElementTest.cs
  2006-01-09 22:17:11 UTC (rev 55268)
+++ 
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/SoapExtensionTypeElementTest.cs
  2006-01-09 22:17:31 UTC (rev 55269)
@@ -30,6 +30,7 @@
 #if NET_2_0
 
 using System;
+using System.Configuration;
 using System.Web.Services.Configuration;
 using NUnit.Framework;
 
@@ -71,6 +72,22 @@
                        el.Type = typeof (string);
                        Assert.AreEqual (typeof (string), el.Type, "A3");
                }
+
+               [Test]
+               [ExpectedException (typeof (ConfigurationErrorsException))]
+               public void PriorityValidator1 ()
+               {
+                       SoapExtensionTypeElement el = new 
SoapExtensionTypeElement ();
+                       el.Priority = -1;
+               }
+
+               [Test]
+               public void PriorityValidator2 ()
+               {
+                       SoapExtensionTypeElement el = new 
SoapExtensionTypeElement ();
+                       el.Priority = 0;
+                       el.Priority = Int32.MaxValue;
+               }
        }
 }
 

Modified: 
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/TypeElementTest.cs
===================================================================
--- 
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/TypeElementTest.cs
       2006-01-09 22:17:11 UTC (rev 55268)
+++ 
trunk/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/TypeElementTest.cs
       2006-01-09 22:17:31 UTC (rev 55269)
@@ -38,11 +38,18 @@
        public class TypeElementTest
        {
                [Test]
-               public void Ctors ()
+               [ExpectedException (typeof (NullReferenceException))]
+               public void Ctors1 ()
                {
                        TypeElement el = new TypeElement ();
                        Assert.IsNull (el.Type, "A1");
+               }
 
+               [Test]
+               public void Ctors2 ()
+               {
+                       TypeElement el;
+
                        el = new TypeElement (typeof (string));
                        Assert.AreEqual (typeof (string), el.Type, "A2");
 

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

Reply via email to