Microsoft PEX/MOLES & advanced Unit-Testing aspects 1/3
- Posted: Sep 29, 2010 at 3:56 AM
- 8,169 Views
Right click “Save as…”
Unit Testing with Pex and Moles
TRAINER: Peli de Halleux – Microsoft Research
Pex enables parameterized unit testing for .NET: given a unit test with parameters. Pex generates inputs that achieves high code coverage. Moles is a framework that allows to isolate unit tests from environment dependencies: Moles allows to replace any .NET method with a delegate, even when the method is static, non-virtual or in a sealed type.
Pex and Moles work on any .NET applications. Pex and Moles supports .NET v2.0, v3.5, v4.0, VS2008 and VS2010.
The learning objectives of this class are:
· Understand and write unit tests
· Use Moles to isolate unit tests
· Write Pex parameterized unit tests