public void GenTest(string input, string expected) { var layout = new SeatLayout(input); var result = layout.Process(); Assert.Equal(expected, result); }
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()); }