DCSIMG
UnitTesting,PDC - All Your Base Are Belong To Us

All Your Base Are Belong To Us

Mostly .NET internals and other kinds of gory details

Browse by Tags

All Tags » UnitTesting » PDC (RSS)
PDC 2009 Day 1: Code Contracts and Pex: Power Charge Your Assertions and Unit Tests
Code Contracts are a mechanism coming out of incubation at Microsoft Research for expressing design intent when implementing an API. The idea is to specify assertions that are verified at runtime to ensure that callers provide proper information to your methods. There are ways to specify contractual information on methods – Contract.Requires and Contract.Ensures , and there are also interface contracts (for any implementation of the interface) and object invariants. Finally, there are automatic tools...