private StringBuilder ops = new StringBuilder ();
private const string expected =
".ctor\n" +
- "get_Value\n" +
+ "get_TestValue\n" +
"OnSwitchSettingChanged\n" +
"GetSetting\n";
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
}
}
+#if NET_2_0
+ public string [] ExposeSupportedAttributes ()
+ {
+ return GetSupportedAttributes ();
+ }
+#endif
+
public bool Validate ()
{
return expected == ops.ToString();
#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
}
}