C# Class System.Reflection.Tests.PropertyInfoTests

Mostra file Open project: dotnet/corefx

Public Methods

Method Description
GetProperty ( Type type, string name ) : PropertyInfo
GetValue_Invalid_TestData ( ) : IEnumerable
GetValue_TestData ( ) : IEnumerable
SetValue_Invalid_TestData ( ) : IEnumerable
SetValue_TestData ( ) : IEnumerable

Private Methods

Method Description
Attributes ( Type type, string name, PropertyAttributes expected ) : void
CanRead ( Type type, string name, bool expected ) : void
CanWrite ( Type type, string name, bool expected ) : void
DeclaringType ( Type type, string name ) : void
Equals ( Type type1, string name1, Type type2, string name2, bool expected ) : void
GetAccessors ( string name, int accessorPublicCount, int accessorPublicAndNonPublicCount ) : void
GetConstantValue_NotConstant_ThrowsInvalidOperationException ( Type type, string name ) : void
GetGetMethod_GetSetMethod ( string name, bool publicGet, bool nonPublicGet, bool publicSet, bool nonPublicSet ) : void
GetHashCodeTest ( ) : void
GetIndexParameters ( Type type, string name, string expectedNames ) : void
GetMethod_SetMethod ( Type type, string name, bool hasGetter, bool hasSetter ) : void
GetRequiredCustomModifiers_GetOptionalCustomModifiers ( string name ) : void
GetValue ( Type type, string name, object obj, object index, object expected ) : void
GetValue_Invalid ( Type type, string name, object obj, object index, Type exceptionType ) : void
IsSpecialName ( Type type, string name, bool expected ) : void
Name ( Type type, string name ) : void
PropertyType ( Type type, string name, Type expected ) : void
SetValue ( Type type, string name, object obj, object value, object index, object expected ) : void
SetValue_Invalid ( Type type, string name, object obj, object value, object index, Type exceptionType ) : void

Method Details

GetProperty() public static method

public static GetProperty ( Type type, string name ) : PropertyInfo
type Type
name string
return PropertyInfo

GetValue_Invalid_TestData() public static method

public static GetValue_Invalid_TestData ( ) : IEnumerable
return IEnumerable

GetValue_TestData() public static method

public static GetValue_TestData ( ) : IEnumerable
return IEnumerable

SetValue_Invalid_TestData() public static method

public static SetValue_Invalid_TestData ( ) : IEnumerable
return IEnumerable

SetValue_TestData() public static method

public static SetValue_TestData ( ) : IEnumerable
return IEnumerable