Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-etree-05.cs
index e9d42dc1201c503ea7cecfb1bfd09436d613536e..9dac2a9be308d6f60f7ff9a2ea3e518fefa046cd 100644 (file)
@@ -18,15 +18,18 @@ class C
                }
        }
        
-       static int Main()
+       public static int Main()
        {
                // It also tests constant boxing
                Expression<Func<ArrayList>> e1 = () => new ArrayList { null, "Hello", "World", 5 };
                AssertNodeType (e1, ExpressionType.ListInit);
                /* Verification exception on .NET */
                var re1 = e1.Compile ().Invoke ();
-               Assert ("World", re1 [1]);
-               Assert (5, re1 [2]);
+               
+               Assert (null, re1 [0]);
+               Assert ("Hello", re1 [1]);
+               Assert ("World", re1 [2]);
+               Assert (5, re1 [3]);
                
                Console.WriteLine ("OK");
                return 0;