2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System / Test / System.Diagnostics / SwitchesTest.cs
index a5574b0275d9b110754eaa8a6797e4f6e77a4dd6..58efe0081cddd962af97b9ded2a84ff1e438f22b 100644 (file)
@@ -25,7 +25,7 @@ namespace MonoTests.System.Diagnostics {
                private StringBuilder ops = new StringBuilder ();
                private const string expected = 
                        ".ctor\n" +
-                       "get_Value\n" +
+                       "get_TestValue\n" +
                        "OnSwitchSettingChanged\n" +
                        "GetSetting\n";
 
@@ -35,9 +35,9 @@ namespace MonoTests.System.Diagnostics {
                        ops.Append (".ctor\n");
                }
 
-               public string Value {
+               public string TestValue {
                        get {
-                               ops.Append ("get_Value\n");
+                               ops.Append ("get_TestValue\n");
                                // ensure that the .config file is read in
                                int n = base.SwitchSetting;
                                // remove warning about unused variable
@@ -46,6 +46,13 @@ namespace MonoTests.System.Diagnostics {
                        }
                }
 
+#if NET_2_0
+               public string [] ExposeSupportedAttributes ()
+               {
+                       return GetSupportedAttributes ();
+               }
+#endif
+
                public bool Validate ()
                {
                        return expected == ops.ToString();
@@ -136,9 +143,17 @@ namespace MonoTests.System.Diagnostics {
 #endif
                public void NewSwitch ()
                {
-                       AssertEquals ("#NS:Value", "42", tns.Value);
+                       AssertEquals ("#NS:TestValue", "42", tns.TestValue);
                        Assert ("#NS:Validate", tns.Validate());
                }
+
+#if NET_2_0
+               [Test]
+               public void GetSupportedAttributes ()
+               {
+                       AssertNull (tns.ExposeSupportedAttributes ());
+               }
+#endif
        }
 }