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