Exemple #1
0
        public string PartB()
        {
            string      filePath    = @"Eleven\DayElevenInput.txt";
            SeatingArea seatingArea = new SeatingArea(filePath);

            seatingArea.Run(true);
            int occupiedSeats = seatingArea.CountOccupiedSeats();

            return(occupiedSeats.ToString());
        }
        public void SeatingArea()
        {
            string filePath = @"Eleven\DayElevenTestInputA.txt";
            var    sut      = new SeatingArea(filePath);

            sut.Run(false);
            var result = sut.CountOccupiedSeats();

            Assert.Equal(37, result);
        }