projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
class
/
System
/
Test
/
System.Diagnostics
/
SwitchesTest.cs
diff --git
a/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs
b/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs
index a5574b0275d9b110754eaa8a6797e4f6e77a4dd6..58efe0081cddd962af97b9ded2a84ff1e438f22b 100644
(file)
--- 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" +
private StringBuilder ops = new StringBuilder ();
private const string expected =
".ctor\n" +
- "get_Value\n" +
+ "get_
Test
Value\n" +
"OnSwitchSettingChanged\n" +
"GetSetting\n";
"OnSwitchSettingChanged\n" +
"GetSetting\n";
@@
-35,9
+35,9
@@
namespace MonoTests.System.Diagnostics {
ops.Append (".ctor\n");
}
ops.Append (".ctor\n");
}
- public string Value {
+ public string
Test
Value {
get {
get {
- ops.Append ("get_Value\n");
+ ops.Append ("get_
Test
Value\n");
// ensure that the .config file is read in
int n = base.SwitchSetting;
// remove warning about unused variable
// 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();
public bool Validate ()
{
return expected == ops.ToString();
@@
-136,9
+143,17
@@
namespace MonoTests.System.Diagnostics {
#endif
public void NewSwitch ()
{
#endif
public void NewSwitch ()
{
- AssertEquals ("#NS:
Value", "42", tns.
Value);
+ AssertEquals ("#NS:
TestValue", "42", tns.Test
Value);
Assert ("#NS:Validate", tns.Validate());
}
Assert ("#NS:Validate", tns.Validate());
}
+
+#if NET_2_0
+ [Test]
+ public void GetSupportedAttributes ()
+ {
+ AssertNull (tns.ExposeSupportedAttributes ());
+ }
+#endif
}
}
}
}