コード例 #1
0
        public void LongestLines()
        {
            var input    = new[] { "2", "Hello World", "CodeEval", "Quick Fox", "A", "San Francisco" };
            var prog     = new LongestLines(input);
            var result   = prog.Run().ToList();
            var expected = new[] { "San Francisco", "Hello World" };

            for (int i = 0; i < expected.Length; i++)
            {
                Assert.AreEqual(expected[i], result[i]);
            }
        }
コード例 #2
0
 public void LongestLines()
 {
     var input = new[] {"2", "Hello World", "CodeEval", "Quick Fox", "A", "San Francisco"};
     var prog = new LongestLines(input);
     var result = prog.Run().ToList();
     var expected = new[] {"San Francisco", "Hello World"};
     for (int i = 0; i < expected.Length; i++)
     {
         Assert.AreEqual(expected[i], result[i]);
     }
 }