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

Monorail

18 Sep 2007 » »

UNIT TESTING

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;


   4:  


   5: namespace JasonMeridth.Tests.Controllers


   6: {


   7:     [TestFixture]


   8:     public class ExampleControllerTests : BaseControllerTest


   9:     {


  10:         private ExampleController exampleController;


  11:  


  12:         [SetUp