// Arrange Act Assert

Jag Reehal on Agile Development, ASP.NET MVC, Silverlight and all manner of good stuff


How AutoMocking and RhinoMocks could change how you write unit tests

One of the biggest headaches when it comes to unit tests and test driven development is having to modify existing tests when a constructor changes even if they don’t need to use the newly injected object. For an introduction to RhinoMocks check out How to write better unit tests using RhinoMocks and stubs. You might [...]

How to write better unit tests using RhinoMocks and mocking

In the last post we saw how the use of stub functionality of a mocking framework within a unit test. The aim of this post is build upon this and look at mocking functionality. If you find yourself having to create a class to hold ‘state’, like this using System.Collections.Generic; namespace GettingStartedWithRhinoMocks { public class [...]

How to write better unit tests using RhinoMocks and stubs

When I was first learning about mocking frameworks (in my case RhinoMocks I found many examples on how to use them. One in particular (this post by Nikola Malovic) gave me the aha moment. This was written some time ago before .Net 3.5 was released. I wanted to show an example of a unit test [...]