protected override void ReadInput(StreamReader input) { IList <string> lines = new List <string>(); string line; while ((line = input.ReadLine()) != null) { lines.Add(line); } hydroThermalVentAnalyser = new HydroThermalVentAnalyser(lines); }
public void SetUp() { lines = new List <string>() { "0,9 -> 5,9", "8,0 -> 0,8", "9,4 -> 3,4", "2,2 -> 2,1", "7,0 -> 7,4", "6,4 -> 2,0", "0,9 -> 2,9", "3,4 -> 1,4", "0,0 -> 8,8", "5,5 -> 8,2", }; hydroThermalVentAnalyser = new HydroThermalVentAnalyser(lines); }