AccountPasswordTests mutates the process-wide AccountSecurity.CurrentAlgorithm static in every test case and never restored it. The class shares the "Sequential UOContent Tests" collection with ~45 other test classes; DisableParallelization serialises them but gives no isolation between classes, so whichever algorithm a case last set leaked into whatever ran next. Nothing reads CurrentAlgorithm elsewhere today, but Tasks 6 and 7 add rehash tests to this same file that will. Capture the ambient algorithm in the constructor and restore it via IDisposable so xUnit's per-test-case construct/dispose cycle resets it automatically -- tests added later to this file inherit the restoration without having to opt in. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Fixtures | ||
| Tests | ||
| UOContent.Tests.csproj | ||