static void Main(string[] args) { var shuttleSearch = new ShuttleSearch(File.ReadAllLines("../input.txt")); //Part One Console.WriteLine(shuttleSearch.GetEarliestTimeWithOneBus()); //Part Two Console.WriteLine(shuttleSearch.GetFirstConsecutiveTimeAllBusGo()); }
public void PartOneTest() { var subject = new ShuttleSearch(GetExampleInput()); Assert.Equal(295, subject.GetEarliestTimeWithOneBus()); }