C# Class Cilador.Fody.Tests.Common.TypeValidatorBase

Afficher le fichier Open project: rileywhite/Cilador Class Usage Examples

Méthodes publiques

Méthode Description
Validate ( Type actualType ) : void

Validates the type.

ValidateParameters ( MethodInfo actualMethod, TypeValidatorBase returnTypeValidator ) : void

Validates a method against expected return and parameter types.

ValidatePropertyTypeAndAccessors ( PropertyInfo actualProperty, PropertyAccessorExpectations propertyAccessorExpectations, TypeValidatorBase propertyTypeValidator ) : void

Validates a property and its getter and/or setter.

ValidateType ( Type actualType, TypeValidatorBase typeValidator ) : void

Validates a type against expected generic argument types.

Method Details

Validate() public abstract méthode

Validates the type.
public abstract Validate ( Type actualType ) : void
actualType System.Type
Résultat void

ValidateParameters() public static méthode

Validates a method against expected return and parameter types.
public static ValidateParameters ( MethodInfo actualMethod, TypeValidatorBase returnTypeValidator ) : void
actualMethod System.Reflection.MethodInfo Method to validate.
returnTypeValidator TypeValidatorBase Expected return type.
Résultat void

ValidatePropertyTypeAndAccessors() public static méthode

Validates a property and its getter and/or setter.
public static ValidatePropertyTypeAndAccessors ( PropertyInfo actualProperty, PropertyAccessorExpectations propertyAccessorExpectations, TypeValidatorBase propertyTypeValidator ) : void
actualProperty System.Reflection.PropertyInfo Property to validate.
propertyAccessorExpectations PropertyAccessorExpectations Expected property accessors.
propertyTypeValidator TypeValidatorBase Validator for the type of the property.
Résultat void

ValidateType() public static méthode

Validates a type against expected generic argument types.
public static ValidateType ( Type actualType, TypeValidatorBase typeValidator ) : void
actualType System.Type Type to validate.
typeValidator TypeValidatorBase Expected types.
Résultat void