Commit 3618f86
Fix StringWriter disposal in TraitMapperTests (#2907)
The `StringWriter` in
`UnmappedImperatorTraitsAreLoggedUnlessExplicitlyDropped` test was not
being disposed, violating IDisposable patterns.
**Changes:**
- Added `using` declaration to ensure `StringWriter` is properly
disposed after test execution
```csharp
// Before
var output = new StringWriter();
Console.SetOut(output);
// After
using var output = new StringWriter();
Console.SetOut(output);
```
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: IhateTrains <29546927+IhateTrains@users.noreply.github.com>1 parent 3de1aab commit 3618f86
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments