Author: toshok
Date: 2005-09-27 21:29:00 -0400 (Tue, 27 Sep 2005)
New Revision: 50902
Added:
trunk/mcs/class/System.Configuration/Test/standalone/t7.cs
trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.config
trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.expected
Modified:
trunk/mcs/class/System.Configuration/Test/standalone/Makefile
trunk/mcs/class/System.Configuration/Test/standalone/t1.cs
trunk/mcs/class/System.Configuration/Test/standalone/t3.cs
trunk/mcs/class/System.Configuration/Test/standalone/t4.exe.expected
trunk/mcs/class/System.Configuration/Test/standalone/t5.cs
trunk/mcs/class/System.Configuration/Test/standalone/t6.cs
Log:
add the first connectionStrings test, and fix some of the others
Modified: trunk/mcs/class/System.Configuration/Test/standalone/Makefile
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/Makefile
2005-09-28 00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/Makefile
2005-09-28 01:29:00 UTC (rev 50902)
@@ -1,4 +1,4 @@
-TESTS = t1.exe t2.exe t3.exe t4.exe t5.exe t6.exe
+TESTS = t1.exe t2.exe t3.exe t4.exe t5.exe t6.exe t7.exe
check: local compare
Modified: trunk/mcs/class/System.Configuration/Test/standalone/t1.cs
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t1.cs 2005-09-28
00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t1.cs 2005-09-28
01:29:00 UTC (rev 50902)
@@ -19,7 +19,7 @@
Console.WriteLine("IsMachineLevel: {0}",
config.EvaluationContext.IsMachineLevel);
foreach (string key in appsettings.Settings.AllKeys) {
- Console.WriteLine ("setting[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
+ Console.WriteLine ("settings[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
}
foreach (string key in AppSettings.AllKeys) {
Modified: trunk/mcs/class/System.Configuration/Test/standalone/t3.cs
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t3.cs 2005-09-28
00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t3.cs 2005-09-28
01:29:00 UTC (rev 50902)
@@ -19,7 +19,7 @@
Console.WriteLine("IsMachineLevel: {0}",
config.EvaluationContext.IsMachineLevel);
foreach (string key in appsettings.Settings.AllKeys) {
- Console.WriteLine ("setting[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
+ Console.WriteLine ("settings[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
}
foreach (string key in AppSettings.AllKeys) {
Modified: trunk/mcs/class/System.Configuration/Test/standalone/t4.exe.expected
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t4.exe.expected
2005-09-28 00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t4.exe.expected
2005-09-28 01:29:00 UTC (rev 50902)
@@ -1,2 +1,2 @@
Count: 0
-AppSettings.Count: 0
\ No newline at end of file
+AppSettings.Count: 0
Modified: trunk/mcs/class/System.Configuration/Test/standalone/t5.cs
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t5.cs 2005-09-28
00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t5.cs 2005-09-28
01:29:00 UTC (rev 50902)
@@ -20,7 +20,7 @@
Console.WriteLine ("File: `{0}'", appsettings.File);
foreach (string key in appsettings.Settings.AllKeys) {
- Console.WriteLine ("setting[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
+ Console.WriteLine ("settings[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
}
foreach (string key in AppSettings.AllKeys) {
Modified: trunk/mcs/class/System.Configuration/Test/standalone/t6.cs
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t6.cs 2005-09-28
00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t6.cs 2005-09-28
01:29:00 UTC (rev 50902)
@@ -20,7 +20,7 @@
Console.WriteLine ("File: `{0}'", appsettings.File);
foreach (string key in appsettings.Settings.AllKeys) {
- Console.WriteLine ("setting[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
+ Console.WriteLine ("settings[{0}] = {1}",
appsettings.Settings[key].Key, appsettings.Settings[key].Value);
}
foreach (string key in AppSettings.AllKeys) {
Added: trunk/mcs/class/System.Configuration/Test/standalone/t7.cs
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t7.cs 2005-09-28
00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t7.cs 2005-09-28
01:29:00 UTC (rev 50902)
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Text;
+using System.Configuration;
+using System.Web;
+
+class T1
+{
+ static void Main(string[] args)
+ {
+ try
+ {
+ Configuration config =
ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
+ ConnectionStringSettingsCollection connectionstrings =
config.ConnectionStrings.ConnectionStrings;
+
+ foreach (ConnectionStringSettings cs in
connectionstrings) {
+ Console.WriteLine ("connectionstring[{0}] =
`{1}',`{2}'", cs.Name, cs.ProviderName, cs.ConnectionString);
+ }
+ }
+ catch (Exception e)
+ {
+ // Error.
+ Console.WriteLine(e.ToString());
+ }
+ }
+}
Added: trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.config
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.config
2005-09-28 00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.config
2005-09-28 01:29:00 UTC (rev 50902)
@@ -0,0 +1,9 @@
+<configuration>
+<connectionStrings>
+ <clear />
+ <add name="LocalSqlServer"
+ connectionString="data source=127.0.0.1; Integrated
Security=SSPI" />
+ <add name="AccessFileName"
+ connectionString="~/Data/ASPNetDB.mdb" />
+</connectionStrings>
+</configuration>
\ No newline at end of file
Added: trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.expected
===================================================================
--- trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.expected
2005-09-28 00:40:25 UTC (rev 50901)
+++ trunk/mcs/class/System.Configuration/Test/standalone/t7.exe.expected
2005-09-28 01:29:00 UTC (rev 50902)
@@ -0,0 +1,2 @@
+connectionstring[LocalSqlServer] = `',`data source=127.0.0.1; Integrated
Security=SSPI'
+connectionstring[AccessFileName] = `',`~/Data/ASPNetDB.mdb'
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches