예제 #1
0
        public void Part2Test()
        {
            // Given
            var notes = TicketNotes.Parse(Input.Get(16, "Part2"));

            // When
            var order = notes.GetFieldOrder();

            // Then
            Assert.Equal(new[] { "row", "class", "seat" }, order);
        }
예제 #2
0
        public void Part1Test()
        {
            // Given
            var notes = TicketNotes.Parse(Input.Get(16, "Part1"));

            // When
            var values = notes.FindImpossibleValues();

            // Then
            Assert.Equal(71, values.Sum());
        }