Refactor/final touches #25
GitHub Actions / DotNET Tests
failed
Aug 28, 2024 in 0s
27 passed, 1 failed and 0 skipped
❌ test/TestResults/test-results.trx
28 tests were completed in 919ms with 27 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test.Application.UnitTests.Services.DomainService.ProfileServiceTests | 11✅ | 167ms | ||
test.Application.UnitTests.Services.DomainService.UserServiceTests | 10✅ | 1❌ | 189ms | |
test.UnitTest1 | 1✅ | 3ms | ||
test.Web.UnitTests.Controllers.UsersControllerTests | 5✅ | 254ms |
✅ test.Application.UnitTests.Services.DomainService.ProfileServiceTests
✅ ChangePassword_WhenChangePasswordFails_ReturnsFail
✅ ChangePassword_WhenCurrentPasswordIsIncorrect_ReturnsFail
✅ ChangePassword_WhenSuccess_ReturnsOk
✅ ChangePassword_WhenUserNotFound_ReturnsFail
✅ EditProfileInfo_WhenAllDataIsChangedCorrectly_ReturnsOk
✅ EditProfileInfo_WhenUpdateFails_ReturnsFail
✅ EditProfileInfo_WhenUsernameIsNoChanged_ReturnsOk
✅ EditProfileInfo_WhenUsernameIsReserved_ReturnsFail
✅ EditProfileInfo_WhenUserNotFound_ReturnsFail
✅ GetProfileInfo_WhenSuccess_ReturnsOk
✅ GetProfileInfo_WhenUserNotFound_ReturnsFail
❌ test.Application.UnitTests.Services.DomainService.UserServiceTests
✅ ChangeRole_WhenOperationSucceeds_ReturnsSuccessResult
✅ ChangeRole_WhenRoleDoesNotExist_ReturnsFailResult
✅ ChangeRole_WhenUserDoesNotExist_ReturnsFailResult
✅ GetUsersAsync_ReturnsUserListWithRoles
✅ Login_WhenLoginSucceeds_ReturnsSuccessResult
✅ Login_WhenPasswordIncorrect_ReturnsFailResult
✅ Login_WhenUsernameNotFound_ReturnsFailResult
✅ SignUpUser_WhenRoleAssignmentFails_ReturnsFailResult
❌ SignUpUser_WhenRoleDoesNotExist_ReturnsFailResult
Assert.Equal() Failure: Strings differ
↓ (pos 0)
Expected: "role does not exist"
Actual: "Role does not exist."
↑ (pos 0)
✅ SignUpUser_WhenUserCreationFails_ReturnsFailResult
✅ SignUpUser_WhenUserIsCreatedAndRoleAssignedSuccessfully_ReturnsSuccessResult
✅ test.UnitTest1
✅ Test1
✅ test.Web.UnitTests.Controllers.UsersControllerTests
✅ ChangeRole_WhenOperationSucceeds_ReturnsOk
✅ ChangeRole_WhenRoleDoesNotExist_ReturnsBadRequest
✅ Login_WhenLoginSucceeds_ReturnsOkResult
✅ Signup_WhenRoleDoesNotExist_ReturnsBadRequest
✅ Signup_WhenSignUpSucceeds_ReturnsOkResult
Annotations
Check failure on line 51 in test/Application.UnitTests/Services/DomainService/UserServiceTests.cs
github-actions / DotNET Tests
test.Application.UnitTests.Services.DomainService.UserServiceTests ► SignUpUser_WhenRoleDoesNotExist_ReturnsFailResult
Failed test found in:
test/TestResults/test-results.trx
Error:
Assert.Equal() Failure: Strings differ
↓ (pos 0)
Expected: "role does not exist"
Actual: "Role does not exist."
↑ (pos 0)
Raw output
Assert.Equal() Failure: Strings differ
↓ (pos 0)
Expected: "role does not exist"
Actual: "Role does not exist."
↑ (pos 0)
at test.Application.UnitTests.Services.DomainService.UserServiceTests.SignUpUser_WhenRoleDoesNotExist_ReturnsFailResult() in /home/runner/work/Summer1403-Project-Group01-Backend/Summer1403-Project-Group01-Backend/test/Application.UnitTests/Services/DomainService/UserServiceTests.cs:line 51
--- End of stack trace from previous location ---
Loading