Have a suggestion for a cast topic you'd like to see? Please send your requests to dimecasts@gmail.com

# 170 - Moles: Mocking the Un-Mockable


4/14/2010
Level: Beginner
Tags: Unit Testing Pex/Moles
Comments: (0)
Author:
Stephen Schaff


In this episode we are going to take at how to use Pex/Moles for .Net

Unit testing is great, but most free isolation frameworks require that your mocks implement an interface. But what do you do when the class you are trying to mock is static or sealed with no interface. If you can’t modify the class then your unit testing efforts are usually stuck. Moles, the new free isolation framework from Microsoft, supports mocking almost any CLR based class (including sealed and static classes).
Click here to Watch this Episode

Download (12.28 MB) (6:56) (1280x1024)


Comments: (0)


Name: *
Email (not displayed): *
Url:
Comments: *



So, you Human...?