You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Audit all exception testing patterns in test files
Standardize on Assert.Throws<T>() pattern
Ensure exception messages are validated where appropriate
Remove inconsistent exception testing approaches
Add missing exception tests for edge cases
Current Inconsistencies
Mix of Assert.Throws, try-catch blocks, and ExpectedException attributes
Inconsistent validation of exception messages
Some tests only check exception type, not message content
Preferred Pattern
// PREFERRED: Modern NUnit patternvarex=Assert.Throws<ArgumentNullException>(()=>database.AddVector(null));Assert.That(ex.ParamName,Is.EqualTo("vector"));// PREFERRED: For async methodsvarex=Assert.ThrowsAsync<ArgumentOutOfRangeException>(async()=>awaitdatabase.SearchAsync(query,-1));Assert.That(ex.Message,Contains.Substring("k must be positive"));
Description
Standardize exception testing across all test files to use consistent NUnit patterns and improve test reliability.
Phase
Phase 0: Test Technical Debt Cleanup
Epic
Related to #202
Acceptance Criteria
Assert.Throws<T>()patternCurrent Inconsistencies
Assert.Throws,try-catchblocks, andExpectedExceptionattributesPreferred Pattern
Files to Review