Jason Meridth

I am a continuously learning senior full stack SDE/SRE trying to not let best be the enemy of better.

Buy me a coffeeBuy me a coffee


18 Sep 2007 » »


After the past 2 1/2 posts I’ve migrated my unit tests to use the BaseControllerTest abstract class that originated from the Eleutian guys, but is now a part of the Castle MonoRail trunk download.
Here is my ExampleControllerTests class:

   1: using Castle.MonoRail.TestSupport;

   2: using JasonMeridth.Controllers;

   3: using NUnit.Framework;


   5: namespace JasonMeridth.Tests.Controllers

   6: {

   7:     [TestFixture]

   8:     public class ExampleControllerTests : BaseControllerTest

   9:     {

  10:         private ExampleController exampleController;


  12:         [SetUp