Hands on Test Driven Development Katas

In these days, Test Driven Development (TDD) is one of the most growing things in the technical world. Most of us are following Agile methodology where we would like to test our code within code.In this article, we will discuss all about TDD Katas and how we can get hands-on with

C# (10.0 MB)
 
 
 
 
 
5 Star
(1)
222 times
Add to favorites
12/24/2015
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
using NUnit.Framework;

namespace TDD_Katas_project.StringSum
{
    [TestFixture]
    [Category("StringSumkata")]
    public class TestStringSumKata
    {
        [TestCase("", null, "0")]
        [Test]
        public void AddReturnSum(string num1, string num2, string expectedResult)
        {
            var result = StringSumKata.Sum(num1, num2);

            Assert.That(expectedResult, Is.EqualTo(result));
        }
    }
}