示例#1
0
 public void LateIndexSet_MissingMember(object obj, object[] args, string[] paramNames)
 {
     Assert.Throws <MissingMemberException>(() => LateBinding.LateIndexSet(obj, args, paramNames));
 }
示例#2
0
 public void LateIndexSet(object obj, object[] args, string[] paramNames, Func <object, object> getResult, object expected)
 {
     LateBinding.LateIndexSet(obj, args, paramNames);
     Assert.Equal(expected, getResult(obj));
 }