The second parameter will still populate the parameters in the method signature with its array contents.
Type type = typeof(MyStaticType);
MethodInfo info = type.GetMethods(BindingFlags.NonPublic|BindingFlags.Static)[0];
Expectations[] expectations = (Expectations[])info.Invoke(null, new object[] { "x", "y" });
Assert.AreEqual(expectations.Length, 999);
No comments:
Post a Comment