public void ParseRowTest(string boardingPass, int row)
        {
            // Arrange
            var seatCalculator = new SeatCalculator();

            // Act
            var seat = seatCalculator.Find(boardingPass);

            // Assert
            Assert.That(seat.Row, Is.EqualTo(row));
        }
        public void ParseColumnTest(string boardingPass, int col)
        {
            // Arrange
            var seatCalculator = new SeatCalculator();

            // Act
            var seat = seatCalculator.Find(boardingPass);

            // Assert
            Assert.That(seat.Column, Is.EqualTo(col));
        }
示例#3
0
 public void SetUp()
 {
     sc = new SeatCalculator();
 }