Skip to content

fix(tests): fix remaining 7 GuardPattern test failures and revert CI diagnostics - #12

Merged
phmatray merged 1 commit into
developfrom
fix/remaining-test-failures
Mar 9, 2026
Merged

phmatray merged 1 commit into
developfrom
fix/remaining-test-failures

Conversation

@phmatray

@phmatray phmatray commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Separate null input tests from invalid format tests in GuardPatternTests since pattern methods throw ArgumentNullException for null inputs (via ArgumentNullException.ThrowIfNull) not ArgumentException
  • Update phone number regex to support international formats like +1-555-123-4567 and +44 20 7123 4567
  • Use Assert.Contains instead of Assert.Equal for custom message test since ArgumentException appends the parameter name to the message
  • Revert CI workflow to standard (remove || true and diagnostic log output from PR fix(demo): resolve compilation errors in InnovativeGuardDemo #11)

Test plan

  • CI build-and-test job passes with all 270+ tests green

- Separate null input tests from invalid format tests since
  pattern methods throw ArgumentNullException for null inputs
  (via ArgumentNullException.ThrowIfNull) not ArgumentException
- Update phone number regex to support international formats
  like +1-555-123-4567 and +44 20 7123 4567
- Use Assert.Contains instead of Assert.Equal for custom message
  test since ArgumentException appends parameter name to message
- Revert CI workflow to standard (remove diagnostic logging)
@phmatray
phmatray merged commit bede23e into develop Mar 9, 2026
1 check passed
@phmatray
phmatray deleted the fix/remaining-test-failures branch March 9, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant