public void Part2Test() { // Given var notes = BusNotes.Parse(Input.Get(13)); // When var t = Day13.Contest(notes.BusIds.ToArray()); // Then Assert.Equal(1068781, t); }
public void Part1Test() { // Given var notes = BusNotes.Parse(Input.Get(13)); // When var earliest = notes.GetNextBus(); var waitTime = notes.GetWaitTime(earliest); //Then Assert.Equal(59, earliest); Assert.Equal(5, waitTime); }