Showing posts with label nunit. Show all posts
Showing posts with label nunit. Show all posts

Wednesday, 27 April 2011

Kata video using nunit and resharper

The below video is well worth watching if you do TDD and use resharper and Nunit. I picked up a few tricks watching it.

I didn't know you could do the following to a test :

 [TestCase(argument1, argument2)]  
 [TestCase(argument1, argument2)]  
 [TestCase(argument1, argument2)]  
 [Test]  
 public void Test(string argument1, string argument2) {  
 Assert.AreEqual(argument1, argument2);  
 }  

It allows us to run the same test multiple times with different arguments. DRY!



Calculator Code Kata Cast 1 from Rickard Nilsson on Vimeo.