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]); } }
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]); } }