File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libraries/tests/AWS.Lambda.Powertools.Common.Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public void SetOut_OverridesConsoleOutput()
127
127
finally
128
128
{
129
129
// Restore original output
130
- Console . SetOut ( originalOutput ) ;
130
+ ConsoleWrapper . ResetForTest ( ) ;
131
131
}
132
132
}
133
133
@@ -137,7 +137,7 @@ public void StaticWriteLine_FormatsLogMessageCorrectly()
137
137
// Arrange
138
138
var originalOutput = Console . Out ;
139
139
using var stringWriter = new StringWriter ( ) ;
140
- Console . SetOut ( stringWriter ) ;
140
+ ConsoleWrapper . SetOut ( stringWriter ) ;
141
141
142
142
try
143
143
{
@@ -153,7 +153,7 @@ public void StaticWriteLine_FormatsLogMessageCorrectly()
153
153
finally
154
154
{
155
155
// Restore original output
156
- Console . SetOut ( originalOutput ) ;
156
+ ConsoleWrapper . ResetForTest ( ) ;
157
157
}
158
158
}
159
159
You can’t perform that action at this time.
0 commit comments