diff options
author | Chris Toshok <toshok@novell.com> | 2006-01-02 18:33:53 +0300 |
---|---|---|
committer | Chris Toshok <toshok@novell.com> | 2006-01-02 18:33:53 +0300 |
commit | 8b3e38860c340daad45df67b024e9348a1da52db (patch) | |
tree | 0f52348d81a47bc69e07ef10760e708cd4a24f2a /mcs/class/System.Configuration | |
parent | a55d9fad1b5503cce6f7c1ac7fc81fefa9ebdd5c (diff) |
add raw xml test. need to get the expected output from windows still.
svn path=/trunk/mcs/; revision=54955
Diffstat (limited to 'mcs/class/System.Configuration')
3 files changed, 30 insertions, 1 deletions
diff --git a/mcs/class/System.Configuration/Test/standalone/Makefile b/mcs/class/System.Configuration/Test/standalone/Makefile index 2aea2f575ca..fab505b6f4a 100644 --- a/mcs/class/System.Configuration/Test/standalone/Makefile +++ b/mcs/class/System.Configuration/Test/standalone/Makefile @@ -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 +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 check: local compare diff --git a/mcs/class/System.Configuration/Test/standalone/t20.cs b/mcs/class/System.Configuration/Test/standalone/t20.cs new file mode 100644 index 00000000000..3d953fa98ab --- /dev/null +++ b/mcs/class/System.Configuration/Test/standalone/t20.cs @@ -0,0 +1,24 @@ +using System; +using System.Configuration; + +class T1 +{ + static void Main(string[] args) + { + try + { + Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None); + AppSettingsSection sect = (AppSettingsSection)config.GetSection("appSettings"); + + Console.WriteLine (sect.SectionInformation.GetRawXml ()); + + foreach (string key in sect.Settings.AllKeys) { + Console.WriteLine ("settings[{0}] = {1}", sect.Settings[key].Key, sect.Settings[key].Value); + } + } + catch (Exception e) + { + Console.WriteLine ("Exception raised: {0}", e); + } + } +} diff --git a/mcs/class/System.Configuration/Test/standalone/t20.exe.config b/mcs/class/System.Configuration/Test/standalone/t20.exe.config new file mode 100644 index 00000000000..8a06682f47d --- /dev/null +++ b/mcs/class/System.Configuration/Test/standalone/t20.exe.config @@ -0,0 +1,5 @@ +<configuration> + <appSettings> + <add key="aloha" value="aloha" /> + </appSettings> +</configuration>
\ No newline at end of file |