Esempio 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();
        }
Esempio n. 2
0
 public void SumByWhileSimple()
 {
     Problem1 p1 = new Problem1();
     var result = p1.SumByWhile(basicArray);
     Assert.AreEqual(result, simpleExpected);
 }
Esempio n. 3
0
 public void SumByWhileComplex()
 {
     Problem1 p1 = new Problem1();
     var result = p1.SumByWhile(complexArray);
     Assert.AreEqual(result, complexExpected);
 }