public void GetValue_Invalid(Type type, string name, object obj, object[] index, Type exceptionType) { PropertyInfo propertyInfo = GetProperty(type, name); Assert.Throws(exceptionType, () => propertyInfo.GetValue(obj, index)); }