Test Driven Development – A hello world approach

[TestFixture]
public class CalculatorClassTest
{
private CalculatorClass _target;

[SetUp]
public void Setup()
{
_target = new CalculatorClass();
}

[Test]
public void TestAdd()
{
Assert.AreEqual(6,_target.DoAdd(4,2));
}

[Test]
public void TestSubtract()
{
Assert.AreEqual(-2, _target.DoSubtract(2, 4));
}

}

public class CalculatorClass
{
public int DoAdd(int i, int i1)
{
throw new NotImplementedException();
}

public int DoSubtract(int i, int i1)
{
throw new NotImplementedException();
}
}