コード例 #1
0
        public void FindMissingSeat_WhenSuppliedWithList_ShouldFindMissingSeat()
        {
            var input = FileLoader.ReadListFromFile <string>("5.txt");
            IEnumerable <(int Row, int Column)> rowsAndColumns = Day5.ConvertToRowAndColumn(input);
            var missingRowAndColumn = Day5.FindMissingSeat(rowsAndColumns);

            var missingSeatId = Day5.CalculateSeatId(new[] { missingRowAndColumn });

            Assert.Equal(646, missingSeatId.Single());
        }