Thursday, September 18, 2008

Restorante - Caffe Del Mare in Twickenham

I had the absolute pleasure of getting up and walking out of the Pizza Express in Twickenham because of being totally ignored and walking 2 minutes down the road towards Manor House park to find caffe Del Mares, a cute little resturant with fantastic food and service. The staff seemed genuinly excited about their food and their resturant. We were warned that getting a seat there over the weekend may require a booking but it would be well worth it!

Simple nunit walkthrough

To setup a nunit test do the following.

1. Download and install nunit 2.0
2. In your VS project add a reference to nunit.framework
3. In your VS project create a new class. Name doesn't matter.
4. Add using NUnit.Framework to your using statements for the new class
5. Prefix your new class with [TestFixture]. example [TestFixture] public class MyTest{}
6. Prefix a method to setup your class with [SetUp]. example: [SetUp] protected void setup() {}
7. Prefix your test methods with [Test]. example [Test] public void ThisIsATest() {}
8. In your ThisIsATest() method type Assert. (PS type Assert dot so you can see the auto-complete)
And then look at the list of options available to you. Each test method should have one assert method which does a test.

To run the test, first build your project, then find nunit on your start menu and open it up. Use it to browse for the dll or exe in your bin folder you just compiled.
Use NUnit to run the test.

NUnit will look for the classes in your project prefixed with [TestFixture] and execute all the [Test]s in it. It will then show you a summary of the results.

Thats all there is to it

Friday, September 12, 2008