Example #1
0
        public void TestExamples(string input, int row, int column, int id)
        {
            var result = Task5.ParseSeatPosition(input);

            result.Should().BeEquivalentTo(new Seat(row: row, column: column));
            result.Id.Should().Be(row * 8 + column);
        }
Example #2
0
 public void TestExcessiveSpecification()
 {
     Task5.ParseSeatPosition("FBFBBFFRLR" + "LLLLLLRRRR").Should().BeEquivalentTo(new Seat(row: 44, column: 5));
 }