79 packages returned for Tags:"contracts"

EnsureFramework is designed to take the pain out of null checking and making sure (ensuring) your methods are being used the way they were intended and throwing exceptions when unsupported values are passed to them. You can make sure values are in a specific range or simply make sure that an... More information
  • 958 total downloads
  • last updated 7/10/2012
  • Latest version: 0.1.1-alpha
  • guard contracts
Fail early. Fail often. Guard assertions + code contracts. (Warning: Interface is likely to change wildly between versions. Use with caution.)
Argument validation methods, for example: this.user = Argument.NotNull("user", user). Less fancy than approaches based on lambdas/anonymous classes, but less scary performance-wise (given that argument checks are often all over the place). Includes Code Contracts [ContractArgumentValidator]... More information