Moles: Mocking the Un-Mockable
Published April 26th, 2010 Under Open Source Tools, Software Testing | Leave a Comment
In this episode we are going to take at how to use Pex and 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).
http://www.dimecasts.net/Content/WatchEpisode/170
Using Rake to Build, Run Unit Tests and Create Documentation
Published March 29th, 2010 Under Open Source Tools, Software Testing | Leave a Comment
This screencast demonstrates how to use Rake to build .NET solution, run unit tests and build documentation. Rake with Ruby is a perfect combination which will eliminate Nant and MSBuild hell.
Power Tools for Debugging
Published March 15th, 2010 Under Software Testing | Leave a Comment
Learn about DebugAdvisor, a search based tool to find related bugs, and other related information such as people and files, Holmes, a statistical debugger based on coverage data that can be used to root-cause a bug by narrowing down the code path that results in the error, and Darwin a symbolic execution-based tool to root cause regressions.
Learning how to use Manual Mocks for Testing
Published March 1st, 2010 Under Software Testing | Leave a Comment
In this episode we are going to take a look at how to use manual mocks for testing. Often times when creating unit tests we need to work in isolation in order to cover the paths we are attempting to test. When we want to test in isolation you can use a testing technique where you mock out your dependencies. When using Mocks you can either do it manually (what we are looking at) or you can use a mocking framework like Rhino Mocks. Either way you achieve the same results.
http://www.dimecasts.net/Content/WatchEpisode/164
Learning how to use the Extract Interface Technique
Published February 22nd, 2010 Under Coding | Leave a Comment
In this episode we are going to take a look at another refactoring technique, the Extract Interface technique. This technique allows you to extract an interface from a class in order to break your concrete dependencies. By doing this you can provide yourself with better testing support as well as a better layer of abstractions.
http://www.dimecasts.net/Content/WatchEpisode/163
keep looking »