Exemplo n.º 1
0
        public void Should_GetListOfSeatIds(List <SeatDay5> seats, List <int> expectedIds)
        {
            var solver = new PuzzleSolverDay5();
            var result = solver.GetListOfSeatIds(seats);

            Assert.Equal(result, expectedIds);
        }
Exemplo n.º 2
0
        public void Should_FindMissingId(List <SeatDay5> seats, int missingId)
        {
            var solver = new PuzzleSolverDay5();
            var result = solver.GetMissingId(seats);

            Assert.Equal(result, missingId);
        }
Exemplo n.º 3
0
        public void Should_GetMaxSeatId(List <SeatDay5> seats, int expectedMaxId)
        {
            var solver = new PuzzleSolverDay5();
            var result = solver.GetMaxSeatId(seats);

            Assert.Equal(expectedMaxId, result);
        }
Exemplo n.º 4
0
        public void ShouldNot_FindMissingId(List <SeatDay5> seats)
        {
            var solver = new PuzzleSolverDay5();

            Assert.Throws <Exception>(() => solver.GetMissingId(seats));
        }