C# Class Pathoschild.DesignByContract.Tests.Framework.AlwaysFailsAttribute

Inheritance: System.Attribute, IParameterPrecondition, IReturnValuePrecondition
Afficher le fichier Open project: Pathoschild/DesignByContract

Méthodes publiques

Méthode Description
OnParameterPrecondition ( ParameterMetadata parameter, object value ) : void

Validate the requirement on a single method parameter or property setter value.

OnReturnValuePrecondition ( ReturnValueMetadata returnValue, object value ) : void

Validate the requirement on a method or property return value.

Method Details

OnParameterPrecondition() public méthode

Validate the requirement on a single method parameter or property setter value.
This exception is always thrown.
public OnParameterPrecondition ( ParameterMetadata parameter, object value ) : void
parameter Pathoschild.DesignByContract.Framework.ParameterMetadata The parameter metadata.
value object The parameter value.
Résultat void

OnReturnValuePrecondition() public méthode

Validate the requirement on a method or property return value.
The contract requirement was not met. This exception is always thrown.
public OnReturnValuePrecondition ( ReturnValueMetadata returnValue, object value ) : void
returnValue Pathoschild.DesignByContract.Framework.ReturnValueMetadata The return value metadata.
value object The return value.
Résultat void