コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }