X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FTest%2FSystem.Diagnostics%2FSwitchesTest.cs;h=58efe0081cddd962af97b9ded2a84ff1e438f22b;hb=e9156bb4b89d647f51b40777ef7f2efca3d6483b;hp=a5574b0275d9b110754eaa8a6797e4f6e77a4dd6;hpb=0ca4c0c5ef6ba0bf13fd721deb36e7b501ec5829;p=mono.git diff --git a/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs b/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs index a5574b0275d..58efe0081cd 100644 --- a/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs +++ b/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs @@ -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 } }