[mono/mono] bbd3769c: [Mono.Debugger.Soft] Test the inherited Type attributes

"Jeffrey Stedfast ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000142101989fd-61ecfe03-0966-4efe-888d-f5067bf86c0b-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/b79cd5abd362...bbd3769cde29

   Commit: bbd3769cde29469461e7e2a72a5850cf54afb52e
   Author: Jeffrey Stedfast <[email protected]> (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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.