Warning · Test quality
Impact
Both tests still pass if cleanup deletes the previous receipt backup after post-replacement validation throws.
Recommended action
Force validation to throw after `File.Replace` succeeds, then assert that the backup still contains the previous receipt.