C# Класс Pathoschild.DesignByContract.Tests.Framework.AlwaysFailsAttribute

Наследование: System.Attribute, IParameterPrecondition, IReturnValuePrecondition
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

OnParameterPrecondition() публичный Метод

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.
Результат void

OnReturnValuePrecondition() публичный Метод

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.
Результат void