News
Questions/Answers/Discussion:There is no discusson page here on the Gallery.
Code ContractsCode Contracts provide a language-agnostic way to express coding assumptions in .NET programs. The contracts take the form of pre-conditions, post-conditions, and object invariants. Contracts act as checked documentation of your external and internal APIs. The contracts are used to improve testing via runtime checking, enable static contract verification, and documentation generation. Code Contracts bring the advantages of design-by-contract programming to all .NET programming languages. We currently provide three tools:
InstallationYou must download and run the Code Contracts .msi file. It installs in any edition of Visual Studio other than the Express edition. It includes the static checker and the binary rewriter (for runtime checking). It also contains a stand-alone contract library (for use with .NET projects that target a runtime earlier than version 4), the contract assembly generator, a set of contract assemblies for the .NET Framework, and user documentation. |