Bump mono-extensions to fix build break (#5677)
[mono.git] / mcs / tests / gtest-284.cs
index eb9df3ccf56ef633c7ed552fad258919903dcfa3..b7583e37813a0e482413450bae0be5f30df488f9 100644 (file)
@@ -172,7 +172,8 @@ public static class InterfaceTester
                ifaces.Add (icollection_type, State.Missing);
                ifaces.Add (ienumerable_type, State.Missing);
                ifaces.Add (icloneable_type, State.Missing);
-
+               ifaces.Add (typeof (IStructuralEquatable), State.Missing);
+               ifaces.Add (typeof (IStructuralComparable), State.Missing);
                Type array_type = t.MakeArrayType ();
 
                if (Debug) {
@@ -186,6 +187,11 @@ public static class InterfaceTester
                        ifaces.Add (generic_ilist_type.MakeGenericType (gargs), State.Missing);
                        ifaces.Add (generic_icollection_type.MakeGenericType (gargs), State.Missing);
                        ifaces.Add (generic_ienumerable_type.MakeGenericType (gargs), State.Missing);
+
+#if NET_4_5
+                       ifaces.Add (typeof (IReadOnlyCollection<>).MakeGenericType (gargs), State.Missing);
+                       ifaces.Add (typeof (IReadOnlyList<>).MakeGenericType (gargs), State.Missing);
+#endif
                }
 
                foreach (Type iface in array_type.GetInterfaces ()) {
@@ -218,11 +224,11 @@ public static class InterfaceTester
 
        public static int Test ()
        {
-               int result = Test (typeof (X), typeof (X), typeof (Y), typeof (object));
+               int result = Test (typeof (X), typeof (X));
                if (result != 0)
                        return result;
 
-               result = Test (typeof (Y), typeof (Y), typeof (object));
+               result = Test (typeof (Y), typeof (Y));
                if (result != 0)
                        return 100 + result;
 
@@ -234,27 +240,27 @@ public static class InterfaceTester
                if (result != 0)
                        return 300 + result;
 
-               result = Test (typeof (int), typeof (int), typeof (uint));
+               result = Test (typeof (int), typeof (int));
                if (result != 0)
                        return 400 + result;
 
-               result = Test (typeof (uint), typeof (int), typeof (uint));
+               result = Test (typeof (uint), typeof (uint));
                if (result != 0)
                        return 500 + result;
 
-               result = Test (typeof (long), typeof (long), typeof (ulong));
+               result = Test (typeof (long), typeof (long));
                if (result != 0)
                        return 600 + result;
 
-               result = Test (typeof (ulong), typeof (long), typeof (ulong));
+               result = Test (typeof (ulong), typeof (ulong));
                if (result != 0)
                        return 700 + result;
 
-               result = Test (typeof (short), typeof (short), typeof (ushort));
+               result = Test (typeof (short), typeof (short));
                if (result != 0)
                        return 800 + result;
 
-               result = Test (typeof (ushort), typeof (short), typeof (ushort));
+               result = Test (typeof (ushort), typeof (ushort));
                if (result != 0)
                        return 900 + result;
 
@@ -280,7 +286,7 @@ class Z
                return 0;
        }
 
-       static int Main ()
+       public static int Main ()
        {
                int result = Test ();
                if (result == 0)