public void Puzzle2_FindFirstDuplicateFrequency() { var counter = new FrequencyCounter(Input.Day01Parse(Input.Day01)); var firstDuplicate = counter.FindFirstDuplicate(); firstDuplicate.Should().Be(66932); }
public void FrequencyCounter_LocatesFirstDuplicateCorrectly(string input, int expectedValue) { var mutations = Input.Day01Parse(input); var counter = new FrequencyCounter(mutations); var firstDuplicate = counter.FindFirstDuplicate(); firstDuplicate.Should().Be(expectedValue); }