Ejemplo n.º 1
0
        public void GetRowNumberTest()
        {
            //Given
            var pass = "******";

            //When
            var row = BoardingPassParser.GetRowNumber(pass);

            //Then
            Assert.Equal(44, row);
        }
Ejemplo n.º 2
0
        public void GetSeatInfo_WithTestInput_ShouldCalculateData(string input, int expectedRow, int expectedCol, int expectedId)
        {
            BoardingPassParser seatCalc = new BoardingPassParser(input);

            int row = seatCalc.GetRow();
            int col = seatCalc.GetCol();
            int id  = seatCalc.GetId();

            Assert.Equal(expectedRow, row);
            Assert.Equal(expectedCol, col);
            Assert.Equal(expectedId, id);
        }