* ConfigurationManagerTest.cs: Added/improved tests for
[mono.git] / mcs / class / System.Configuration / Test / standalone / t23.cs
1 using System;
2 using System.Configuration;
3
4 class T1
5 {
6         static void Main(string[] args)
7         {
8                 try {
9                         Console.WriteLine ("DefaultProvider = {0}", ProtectedConfiguration.DefaultProvider);
10                         foreach (ProtectedConfigurationProvider pc in ProtectedConfiguration.Providers) {
11                                 Console.WriteLine (pc.Name);
12                                 if (pc is RsaProtectedConfigurationProvider) {
13                                         RsaProtectedConfigurationProvider rsa = (RsaProtectedConfigurationProvider)pc;
14
15                                         Console.WriteLine ("keyContainerName = {0}", rsa.KeyContainerName);
16                                         Console.WriteLine ("useMachineContainer = {0}", rsa.UseMachineContainer);
17                                 }
18                         }
19                 }
20                 catch (Exception e)
21                 {
22                         Console.WriteLine ("Exception raised: {0}", e.Message);
23                 }
24         }
25 }