Skip to content

Commit b546b8a

Browse files
CopilotIhateTrains
andcommitted
Fix StringWriter disposal in TraitMapperTests
Co-authored-by: IhateTrains <29546927+IhateTrains@users.noreply.github.com>
1 parent 9a2f90f commit b546b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ImperatorToCK3.UnitTests/Mappers/Trait/TraitMapperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void UnmappedImperatorTraitsAreLoggedUnlessExplicitlyDropped() {
134134
var mapper = new TraitMapper(tempTestFile, ck3ModFS);
135135

136136
var irModFS = new ModFilesystem("TestFiles/Imperator/game", new List<Mod>());
137-
var output = new StringWriter();
137+
using var output = new StringWriter();
138138
Console.SetOut(output);
139139

140140
mapper.LogUnmappedImperatorTraits(irModFS);

0 commit comments

Comments
 (0)