System.Reflection.Tests.PropertyInfoTests.GetIndexParameters C# (CSharp) Method

GetIndexParameters() private method

private GetIndexParameters ( Type type, string name, string expectedNames ) : void
type Type
name string
expectedNames string
return void
        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));
        }