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
222 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

using System.Collections.Generic;

namespace TDD_Katas_project.The_PrimeFactor_Kata
    public class PrimeFactor
        public static IList<int?> Generate(int number)
            IList<int?> primes = new List<int?>();

            for (var candidate = 2; number > 1; candidate++)
                for (; number%candidate == 0; number /= candidate)

            return primes;