#394-Xunit-tests-for-roomBookingMockup #430

Merged
b24johka merged 3 commits from #394-Xunit-tests-for-roomBookingMockup into team_1_week_2 2026-04-21 08:17:10 +00:00
Collaborator

Unit tests have been written for the BookingGenerator class, to the extent that is deemed possible.

Unit tests have been written for the BookingGenerator class, to the extent that is deemed possible.
Implemented the following tests for the BookingGenerator class.

- GetBookings_NoParameter_NotNull()
- GetBookings_NonZeroParameter_HasExpectedEntryCount()
- GetBookings_NonZeroParameter_EntriesNotNull()
- Renamed the UnitTest1 class file to BookingGeneratorTests.cs
- Added unit test to check that a Null value is returned if one accidentally uses a negative value.
Removed     <PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.5" />

as i did not end up using it for now.
Collaborator

xUnit test is good and follows the testing guideline for a unit tests for back end data components testing for given sizes and null values and negative values/below minimum value. Code strucutre is good and well commented and tests succed when running on Linux.

Can't see any max value test, minimum test or above max value test, this is should be added as it is standard unit test practice before being merged in. If these don't exists due to the current code make sure to create a new issue to fix this in the future and then merge in

xUnit test is good and follows the testing guideline for a unit tests for back end data components testing for given sizes and null values and negative values/below minimum value. Code strucutre is good and well commented and tests succed when running on Linux. Can't see any max value test, minimum test or above max value test, this is should be added as it is standard unit test practice before being merged in. If these don't exists due to the current code make sure to create a new issue to fix this in the future and then merge in
Collaborator

The review has been conducted in a good way, this will be merged in.

The review has been conducted in a good way, this will be merged in.
b24johka merged commit b7c5a64d86 into team_1_week_2 2026-04-21 08:17:10 +00:00
b24johka deleted branch #394-Xunit-tests-for-roomBookingMockup 2026-04-21 08:17:14 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!430
No description provided.