Beispiel #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);
        }
Beispiel #2
0
        public void Should_FindMissingId(List <SeatDay5> seats, int missingId)
        {
            var solver = new PuzzleSolverDay5();
            var result = solver.GetMissingId(seats);

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

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

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