Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Problem 1:");
            Console.WriteLine(Problem1.Process(LoremIpsum, 70));
            Console.WriteLine();

            //Uncomment these lines to test your second solution.
            Console.WriteLine("Problem 2:");
            foreach (var result in Problem2.Process(LoremIpsum))
            {
                Console.WriteLine("Word: " + result.Key + " Count: " + result.Value);
            }

            Console.WriteLine();

            Console.WriteLine("Press any key to continue.");
            Console.ReadKey();
        }
Exemplo n.º 2
0
 public void SumByWhileSimple()
 {
     Problem1 p1 = new Problem1();
     var result = p1.SumByWhile(basicArray);
     Assert.AreEqual(result, simpleExpected);
 }
Exemplo n.º 3
0
 public void SumByWhileComplex()
 {
     Problem1 p1 = new Problem1();
     var result = p1.SumByWhile(complexArray);
     Assert.AreEqual(result, complexExpected);
 }