Yet Another Lambda Blog » Code testing in Haskell A few weeks ago I wrote that for 3 years I used Matlab as my main programming language . Before that however I was developing in Java. While Java can be criticized for its design – and I noticed that some Haskallers look down on it – it learned me one very important thing: code testing. Java’s JUnit was very important in popularizing Test Driven Development (TDD) and code testing in general.
Rhino Mocks 3.5 introduces some new concepts, mostly by building upon the language features of C# 3.0. Users on the 2.0 platform need not worry, there are enough goodies for them as well (inline constraints, for example), but the focus of this document is on the use of Rhino Mocks with C# 3.0. Edit New things in Rhino Mocks 3.5: Arrange, Act, Assert model Lambda and C# 3.0 extensions Inline constraints Property Setters Explicit Expectation API Support for mocking interface in C++ that mix native and managed types. Allow a mock object to return to record mode without losing its expectations CreateMock was deprecated in favor of StrictMock Better error handling in edge cases. Rhino Mocks 3.5 - Ayende @ Wiki
Rhino Mocks is the most popular Mock Object Framework for .NET. The purpose of this blog entry is to provide a brief introduction to Rhino Mocks. In particular, I want to describe how you can use Rhino Mocks when building ASP.NET MVC web applications. In the first part of this entry, I explain why Mock Object Frameworks are critical tools when performing Test-Driven Development. Next, I discuss how you can use Rhino Mocks to create both state verification unit tests and behavior verification unit tests. TDD : Introduction to Rhino Mocks
After talking to a few guys during the MVP summit and the proceedings of the ALT.NET conference, I decided to give xUnit a serious try. I’m quite pleased with it. Using .NET idioms rather than excessive attributes (i.e. [SetUp] vs class constructor, [TearDown] vs IDisposable, etc.) is a good thing. MoQ now uses xUnit for its unit tests
xUnit.net - Unit testing framework for C# and .NET (a successor to NUnit)
Download Current Stable Release: NUnit 2.6.2 Download Types The following types of downloads are provided: Windows installer packages (marked win ) are for use on Windows under Microsoft .NET or Mono.