예제 #1
0
파일: Task5.cs 프로젝트: 24twelve/Contests
        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);
        }
예제 #2
0
파일: Task5.cs 프로젝트: 24twelve/Contests
 public void TestExcessiveSpecification()
 {
     Task5.ParseSeatPosition("FBFBBFFRLR" + "LLLLLLRRRR").Should().BeEquivalentTo(new Seat(row: 44, column: 5));
 }