New tests.
[mono.git] / mcs / class / System / Test / System.CodeDom / CodeTypeReferenceTest.cs
index f3156d5712d50d55cd62d77c7ab4cee687550fea..aee90f00748d58021ca9e515b021111bade002ee 100644 (file)
@@ -469,9 +469,6 @@ namespace MonoTests.System.CodeDom
                }
 
                [Test]
-#if TARGET_JVM
-               [Ignore("TD BUG ID: 7202")]
-#endif
                public void GenericTypeTest1 () {
                        CodeTypeReference reference = new CodeTypeReference (
                                typeof (Dictionary<int,string>));
@@ -500,9 +497,6 @@ namespace MonoTests.System.CodeDom
                }
 
                [Test]
-#if TARGET_JVM
-               [Ignore("TD BUG ID: 7202")]
-#endif
                public void GenericTypeTest2 () {
                        CodeTypeReference reference = new CodeTypeReference (
                                typeof (Dictionary<List<int>, string>));
@@ -539,9 +533,6 @@ namespace MonoTests.System.CodeDom
                }
 
                [Test]
-#if TARGET_JVM
-               [Ignore("TD BUG ID: 7202")]
-#endif         
                public void GenericTypeTest3 () 
                {
                        CodeTypeReference reference = new CodeTypeReference (
@@ -584,9 +575,6 @@ namespace MonoTests.System.CodeDom
                }
 
                [Test]
-#if TARGET_JVM
-               [Ignore ("TD BUG ID: 7203")]
-#endif         
                public void GenericTypeTest5 () 
                {
                        CodeTypeReference reference = new CodeTypeReference (
@@ -598,6 +586,18 @@ namespace MonoTests.System.CodeDom
                        Assert.IsNotNull (reference.TypeArguments, "#5");
                        Assert.AreEqual (0, reference.TypeArguments.Count, "#6");
                }
+
+               [Test (Description="Bug #523341")]
+               public void GenericTypeTest6 ()
+               {
+                       CodeTypeReference reference = new CodeTypeReference ("System.Collections.List<System.Globalization.CultureInfo[]>");
+                       Assert.AreEqual ("System.Collections.List<System.Globalization.CultureInfo[]>", reference.BaseType, "#1");
+                       Assert.AreEqual (0, reference.ArrayRank, "#2");
+                       Assert.IsNull (reference.ArrayElementType, "#3");
+                       Assert.AreEqual (0, (int) reference.Options, "#4");
+                       Assert.IsNotNull (reference.TypeArguments, "#5");
+                       Assert.AreEqual (0, reference.TypeArguments.Count, "#6");
+               }
 #endif
 
                // bug #76535