Esempio n. 1
0
        public void GenTest(string input, string expected)
        {
            var layout = new SeatLayout(input);

            var result = layout.Process();

            Assert.Equal(expected, result);
        }
Esempio n. 2
0
        public override string Part1(string input)
        {
            var layout = new SeatLayout(input);

            var seen = new HashSet <string>();

            var status = layout.ToString();

            while (seen.Add(status))
            {
                status = layout.Process();
            }

            return(layout.OccupiedCount().ToString());
        }