예제 #1
0
        public void Calculate_seatId()
        {
            var p = new BoardingPass("FBFBBFFRLR");

            p.SeatId.Should().Be(357);
        }
예제 #2
0
        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));
        }
예제 #3
0
        public void Calculate_column()
        {
            var p = new BoardingPass("FBFBBFFRLR");

            p.Column.Should().Be(5);
        }
예제 #4
0
        public void Calculate_row()
        {
            var p = new BoardingPass("FBFBBFFRLR");

            p.Row.Should().Be(44);
        }