C# 클래스 Pathoschild.DesignByContract.Tests.Framework.AlwaysFailsAttribute

상속: System.Attribute, IParameterPrecondition, IReturnValuePrecondition
파일 보기 프로젝트 열기: Pathoschild/DesignByContract

공개 메소드들

메소드 설명
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