You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
@@ -207,11 +207,14 @@ class Tester : DynamicObjectMock
|
||||
}
|
||||
}
|
||||
|
||||
static FieldInfo flags = typeof (CSharpArgumentInfo).GetField ("flags", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
static PropertyInfo flags = typeof (CSharpArgumentInfo).GetProperty ("Flags", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
|
||||
static void AssertArgument (CallSiteBinder obj, CSharpArgumentInfo[] expected, string name)
|
||||
{
|
||||
var ai = obj.GetType ().GetField ("argumentInfo", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
var ai = obj.GetType ().GetField ("_argumentInfo", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
if (ai == null)
|
||||
throw new ApplicationException ("Could not find 'argumentInfo' private field on " + obj.GetType ());
|
||||
|
||||
IList<CSharpArgumentInfo> values = (IList<CSharpArgumentInfo>) ai.GetValue (obj);
|
||||
if (values.Count != expected.Length)
|
||||
throw new ApplicationException (name + ": Array length does not match " + values.Count + " != " + expected.Length);
|
||||
|
||||
Reference in New Issue
Block a user