NUnit
Basic Setup
Solution
public class Challenge
{
public static int Add(int a, int b)
{
return a + b;
}
}
public class Challenge
{
public static int Add(int a, int b)
{
return a + b;
}
}
Tests
using NUnit.Framework;
[TestFixture]
public class AddTest
{
[Test, Description("should add two numbers")]
public void ShouldAddTwoNumbers()
{
Assert.That(3, Is.EqualTo(Challenge.Add(1, 2)));
}
}
using NUnit.Framework;
[TestFixture]
public class AddTest
{
[Test, Description("should add two numbers")]
public void ShouldAddTwoNumbers()
{
Assert.That(3, Is.EqualTo(Challenge.Add(1, 2)));
}
}