C# Class Habanero.Testability.Helpers.FakePropertyInfo

Fake PropertyInfo for testing reflection code e.g. binding, Smooth, testability.
Inheritance: System.Reflection.PropertyInfo
Afficher le fichier Open project: Chillisoft/habanero.testability Class Usage Examples

Méthodes publiques

Méthode Description
FakePropertyInfo ( ) : System

FakePropertyInfo ( Type declaringType ) : System

/

FakePropertyInfo ( string propName ) : System

FakePropertyInfo ( string propName, Type propType ) : System

FakePropertyInfo ( string propName, Type propType, Type declaringType ) : System

GetAccessors ( bool nonPublic ) : System.Reflection.MethodInfo[]
GetCustomAttributes ( Type attributeType, bool inherit ) : object[]
GetCustomAttributes ( bool inherit ) : object[]
GetGetMethod ( bool nonPublic ) : MethodInfo
GetIndexParameters ( ) : System.Reflection.ParameterInfo[]
GetSetMethod ( bool nonPublic ) : MethodInfo
GetValue ( object obj, BindingFlags invokeAttr, Binder binder, object index, CultureInfo culture ) : object
IsDefined ( Type attributeType, bool inherit ) : bool
SetReflectedType ( Type reflectedType ) : void

SetValue ( object obj, object value, BindingFlags invokeAttr, Binder binder, object index, CultureInfo culture ) : void

Private Methods

Méthode Description
GetMockType ( ) : Type
GetRandomString ( ) : string

Method Details

FakePropertyInfo() public méthode

public FakePropertyInfo ( ) : System
Résultat System

FakePropertyInfo() public méthode

/
public FakePropertyInfo ( Type declaringType ) : System
declaringType System.Type
Résultat System

FakePropertyInfo() public méthode

public FakePropertyInfo ( string propName ) : System
propName string
Résultat System

FakePropertyInfo() public méthode

public FakePropertyInfo ( string propName, Type propType ) : System
propName string
propType System.Type
Résultat System

FakePropertyInfo() public méthode

public FakePropertyInfo ( string propName, Type propType, Type declaringType ) : System
propName string
propType System.Type
declaringType System.Type
Résultat System

GetAccessors() public méthode

public GetAccessors ( bool nonPublic ) : System.Reflection.MethodInfo[]
nonPublic bool
Résultat System.Reflection.MethodInfo[]

GetCustomAttributes() public méthode

public GetCustomAttributes ( Type attributeType, bool inherit ) : object[]
attributeType System.Type
inherit bool
Résultat object[]

GetCustomAttributes() public méthode

public GetCustomAttributes ( bool inherit ) : object[]
inherit bool
Résultat object[]

GetGetMethod() public méthode

public GetGetMethod ( bool nonPublic ) : MethodInfo
nonPublic bool
Résultat System.Reflection.MethodInfo

GetIndexParameters() public méthode

public GetIndexParameters ( ) : System.Reflection.ParameterInfo[]
Résultat System.Reflection.ParameterInfo[]

GetSetMethod() public méthode

public GetSetMethod ( bool nonPublic ) : MethodInfo
nonPublic bool
Résultat System.Reflection.MethodInfo

GetValue() public méthode

public GetValue ( object obj, BindingFlags invokeAttr, Binder binder, object index, CultureInfo culture ) : object
obj object
invokeAttr BindingFlags
binder System.Reflection.Binder
index object
culture System.Globalization.CultureInfo
Résultat object

IsDefined() public méthode

public IsDefined ( Type attributeType, bool inherit ) : bool
attributeType System.Type
inherit bool
Résultat bool

SetReflectedType() public méthode

public SetReflectedType ( Type reflectedType ) : void
reflectedType System.Type
Résultat void

SetValue() public méthode

public SetValue ( object obj, object value, BindingFlags invokeAttr, Binder binder, object index, CultureInfo culture ) : void
obj object
value object
invokeAttr BindingFlags
binder System.Reflection.Binder
index object
culture System.Globalization.CultureInfo
Résultat void