[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] [mono/mono] bbd3769c: [Mono.Debugger.Soft] Test the inherited Type attributes
From: "Jeffrey Stedfast (jeff () xamarin ! com)" <mono-patches () lists ! ximian ! com>
Date: 2013-10-31 19:59:38
Message-ID: 00000142101989fd-61ecfe03-0966-4efe-888d-f5067bf86c0b-000000 () email ! amazonses ! com
[Download RAW message or body]
Branch: refs/heads/master
Home: https://github.com/mono/mono
Compare: https://github.com/mono/mono/compare/b79cd5abd362...bbd3769cde29
Commit: bbd3769cde29469461e7e2a72a5850cf54afb52e
Author: Jeffrey Stedfast <jeff@xamarin.com> (jstedfast)
Date: 2013-10-31 19:58:04 GMT
URL: https://github.com/mono/mono/commit/bbd3769cde29469461e7e2a72a5850cf54afb52e
[Mono.Debugger.Soft] Test the inherited Type attributes
Changed paths:
M mcs/class/Mono.Debugger.Soft/Test/dtest.cs
Modified: mcs/class/Mono.Debugger.Soft/Test/dtest.cs
===================================================================
@@ -1102,8 +1102,8 @@ public class DebuggerTests
// custom attributes
t = frame.Method.GetParameters ()[8].ParameterType;
Assert.AreEqual ("Tests2", t.Name);
- var attrs = t.GetCustomAttributes (false);
- Assert.AreEqual (3, attrs.Length);
+ var attrs = t.GetCustomAttributes (true);
+ Assert.AreEqual (5, attrs.Length);
foreach (var attr in attrs) {
if (attr.Constructor.DeclaringType.Name == "DebuggerDisplayAttribute") {
Assert.AreEqual (1, attr.ConstructorArguments.Count);
@@ -1122,6 +1122,12 @@ public class DebuggerTests
Assert.AreEqual (2, attr.NamedArguments.Count);
Assert.AreEqual ("afield", attr.NamedArguments [0].Field.Name);
Assert.AreEqual ("bfield", attr.NamedArguments [1].Field.Name);
+ } else if (attr.Constructor.DeclaringType.Name == "ClassInterface") {
+ // inherited from System.Object
+ //} else if (attr.Constructor.DeclaringType.Name == "Serializable") {
+ // inherited from System.Object
+ } else if (attr.Constructor.DeclaringType.Name == "ComVisible") {
+ // inherited from System.Object
} else {
Assert.Fail (attr.Constructor.DeclaringType.Name);
}
_______________________________________________
Mono-patches maillist - Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic