add a couple more tests
authorChris Toshok <toshok@novell.com>
Fri, 24 Mar 2006 19:21:48 +0000 (19:21 -0000)
committerChris Toshok <toshok@novell.com>
Fri, 24 Mar 2006 19:21:48 +0000 (19:21 -0000)
svn path=/trunk/mcs/; revision=58480

mcs/class/System.Configuration/Test/standalone/Makefile
mcs/class/System.Configuration/Test/standalone/t30.cs [new file with mode: 0644]
mcs/class/System.Configuration/Test/standalone/t30.exe.config [new file with mode: 0644]
mcs/class/System.Configuration/Test/standalone/t30.exe.expected [new file with mode: 0644]
mcs/class/System.Configuration/Test/standalone/t31.cs [new file with mode: 0644]
mcs/class/System.Configuration/Test/standalone/t31.exe.config [new file with mode: 0644]
mcs/class/System.Configuration/Test/standalone/t31.exe.expected [new file with mode: 0644]

index d344a269937d5cafabebe6539d1a967951d574f0..4a4ad17000a7b7f3c33c37f7af24529709d2742a 100644 (file)
@@ -1,4 +1,4 @@
-TESTS = t1.exe t2.exe t3.exe t4.exe t5.exe t6.exe t7.exe t8.exe t9.exe t10.exe t11.exe t12.exe t13.exe t14.exe t15.exe t16.exe t17.exe t18.exe t19.exe t20.exe t21.exe t22.exe t23.exe t24.exe t25.exe t26.exe t27.exe t28.exe t29.exe
+TESTS = t1.exe t2.exe t3.exe t4.exe t5.exe t6.exe t7.exe t8.exe t9.exe t10.exe t11.exe t12.exe t13.exe t14.exe t15.exe t16.exe t17.exe t18.exe t19.exe t20.exe t21.exe t22.exe t23.exe t24.exe t25.exe t26.exe t27.exe t28.exe t29.exe t30.exe t31.exe
 
 check: local compare
 
@@ -18,4 +18,4 @@ clean:
        rm -f *.exe *.mdb *.result
 
 %.exe: %.cs
-       gmcs /debug $< -r:System.Configuration.dll
+       gmcs /debug $< -r:System.Configuration.dll -r:System.Web.dll
diff --git a/mcs/class/System.Configuration/Test/standalone/t30.cs b/mcs/class/System.Configuration/Test/standalone/t30.cs
new file mode 100644 (file)
index 0000000..b2c3c82
--- /dev/null
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Text;
+using System.Configuration;
+using System.Web;
+using System.Web.Configuration;
+
+class T30
+{
+       static void Main(string[] args)
+       {
+               try
+               {
+                       CompilationSection section = (CompilationSection)ConfigurationManager.GetSection ("system.web/compilation");
+
+                       section = (CompilationSection)ConfigurationManager.GetSection ("system.web/compilation");
+
+                       Console.WriteLine ("there are {0} assemblies listed in the section", section.Assemblies.Count);
+               }
+               catch (Exception e)
+               {
+                       // Error.
+                       Console.WriteLine(e.ToString());
+               }
+       }
+}
diff --git a/mcs/class/System.Configuration/Test/standalone/t30.exe.config b/mcs/class/System.Configuration/Test/standalone/t30.exe.config
new file mode 100644 (file)
index 0000000..d473daa
--- /dev/null
@@ -0,0 +1,10 @@
+<configuration>
+       <system.web>
+                <compilation debug="true">
+                        <assemblies>
+                                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
+                                <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
+                       </assemblies>
+               </compilation>
+       </system.web>
+</configuration>
diff --git a/mcs/class/System.Configuration/Test/standalone/t30.exe.expected b/mcs/class/System.Configuration/Test/standalone/t30.exe.expected
new file mode 100644 (file)
index 0000000..7b66474
--- /dev/null
@@ -0,0 +1 @@
+there are 2 assemblies listed in the section
diff --git a/mcs/class/System.Configuration/Test/standalone/t31.cs b/mcs/class/System.Configuration/Test/standalone/t31.cs
new file mode 100644 (file)
index 0000000..4c8dfaf
--- /dev/null
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Text;
+using System.Configuration;
+using System.Web;
+using System.Web.Configuration;
+using _Configuration = System.Configuration.Configuration;
+
+class T31
+{
+       static void Main(string[] args)
+       {
+               try
+               {
+                       _Configuration cfg = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
+
+                       CompilationSection section = (CompilationSection)cfg.GetSection ("system.web/compilation");
+
+                       section = (CompilationSection)cfg.GetSection ("system.web/compilation");
+
+                       Console.WriteLine ("there are {0} assemblies listed in the section", section.Assemblies.Count);
+               }
+               catch (Exception e)
+               {
+                       // Error.
+                       Console.WriteLine(e.ToString());
+               }
+       }
+}
diff --git a/mcs/class/System.Configuration/Test/standalone/t31.exe.config b/mcs/class/System.Configuration/Test/standalone/t31.exe.config
new file mode 100644 (file)
index 0000000..d473daa
--- /dev/null
@@ -0,0 +1,10 @@
+<configuration>
+       <system.web>
+                <compilation debug="true">
+                        <assemblies>
+                                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
+                                <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
+                       </assemblies>
+               </compilation>
+       </system.web>
+</configuration>
diff --git a/mcs/class/System.Configuration/Test/standalone/t31.exe.expected b/mcs/class/System.Configuration/Test/standalone/t31.exe.expected
new file mode 100644 (file)
index 0000000..7b66474
--- /dev/null
@@ -0,0 +1 @@
+there are 2 assemblies listed in the section