public void GetIndexParameters(Type type, string name, string[] expectedNames) { PropertyInfo propertyInfo = GetProperty(type, name); ParameterInfo[] indexParameters = propertyInfo.GetIndexParameters(); Assert.Equal(expectedNames, indexParameters.Select(p => p.Name)); }