// Arrange Act Assert

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


Did you know NUnit 2.5 is out?

Go to http://www.nunit.org/index.php?p=download to get it! It has awesome new features such as data driven tests! See http://nunit.com/blogs/?p=66 for more information. That means I can now do the things only possible before in other frameworks such as MbUnit and xUnit. Just be aware if you write your asserts like this Assert.That(1, Is.EqualTo(1)); ‘Is’ is now [...]

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 [...]