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

GetValue_Invalid() private method

private GetValue_Invalid ( Type type, string name, object obj, object index, Type exceptionType ) : void
type Type
name string
obj object
index object
exceptionType Type
return void
        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));
        }