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

Show file Open project: rileywhite/Cilador Class Usage Examples

Public Methods

Method 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 method

Validates the type.
public abstract Validate ( Type actualType ) : void
actualType System.Type
return void

ValidateParameters() public static method

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.
return void

ValidatePropertyTypeAndAccessors() public static method

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.
return void

ValidateType() public static method

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.
return void