Excellent FREE resource for learning Domain Driven Design
If you asked developers what books they should read, most would (or should) include Domain Driven Design by Eric Evans. Why is it important? The patterns and practices outlined in this book will help you develop more successful software solutions. How? Eric Evans shows how you can improve communication with your customer (by doing things [...]
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 [...]
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 [...]
keep looking »