public void GenTest2(string input, string expected) { var layout = new SeatLayout(input); var result = layout.Process2(); Assert.Equal(expected, result); }
public override string Part2(string input) { var layout = new SeatLayout(input); var seen = new HashSet <string>(); var status = layout.ToString(); while (seen.Add(status)) { status = layout.Process2(); } return(layout.OccupiedCount().ToString()); }