Skip to content

Commit 953e77e

Browse files
committed
fix sonar, make static
1 parent 1c5b387 commit 953e77e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/src/AWS.Lambda.Powertools.Common/Core/SystemWrapper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public void SetExecutionEnvironment<T>(T type)
146146
/// <inheritdoc />
147147
public void SetOut(TextWriter writeTo)
148148
{
149-
_testOutputStream = writeTo;
150-
_inTestMode = true;
149+
SystemWrapper._testOutputStream = writeTo;
150+
SystemWrapper._inTestMode = true;
151151
Console.SetOut(writeTo);
152152
}
153153

@@ -172,14 +172,14 @@ private string ParseAssemblyName(string assemblyName)
172172
return $"{Constants.FeatureContextIdentifier}/{assemblyName}";
173173
}
174174

175-
private void EnsureConsoleOutputOnce()
175+
private static void EnsureConsoleOutputOnce()
176176
{
177177
if (_outputResetPerformed) return;
178178
ResetConsoleOutput();
179179
_outputResetPerformed = true;
180180
}
181181

182-
private void ResetConsoleOutput()
182+
private static void ResetConsoleOutput()
183183
{
184184
var standardOutput = new StreamWriter(Console.OpenStandardOutput());
185185
standardOutput.AutoFlush = true;

0 commit comments

Comments
 (0)