Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / tests / gtest-434.cs
blob34bd65919440f96eb6344e069054e9cf6de94514
1 // Compiler options: -r:gtest-434-lib.dll
3 using System;
4 using System.Reflection;
6 namespace testcase
8 public class Init : ConfigurationExpression, IInitializationExpression
12 public class Program
14 public static int Main ()
16 var t = typeof (Init);
17 var m = t.GetMethod ("testcase.IInitializationExpression.AddRegistry", BindingFlags.NonPublic | BindingFlags.Instance);
18 Console.WriteLine (m.Attributes);
20 if (m.Attributes != (MethodAttributes.Private | MethodAttributes.Virtual | MethodAttributes.Final | MethodAttributes.HideBySig | MethodAttributes.VtableLayoutMask | MethodAttributes.CheckAccessOnOverride))
21 return 1;
23 IInitializationExpression expression = new Init ();
24 expression.AddRegistry<string> (11);
25 return 0;