public void Calculate_seatId() { var p = new BoardingPass("FBFBBFFRLR"); p.SeatId.Should().Be(357); }
public void Calculate_row_and_column_range(int n, int start, int end) { var p = new BoardingPass("FBFBBFFRLR", n); p.ColumnRange.Should().Be(new Range(start, end)); }
public void Calculate_column() { var p = new BoardingPass("FBFBBFFRLR"); p.Column.Should().Be(5); }
public void Calculate_row() { var p = new BoardingPass("FBFBBFFRLR"); p.Row.Should().Be(44); }