Merge setup parameter into ExecuteAndCapture method with default value

This commit is contained in:
Stone_Red
2026-03-04 19:59:01 +01:00
parent 27f72f1413
commit d00295516c
+1 -4
View File
@@ -85,10 +85,7 @@ internal static class YesNtAssert
return debugEventArgs?.CurrentLine;
}
private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List<string> lines, int timeout)
=> ExecuteAndCapture(lines, timeout, setup: null);
private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List<string> lines, int timeout, Action<YesNtInterpreter>? setup)
private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List<string> lines, int timeout, Action<YesNtInterpreter>? setup = null)
{
YesNtInterpreter yesNtInterpreter = new YesNtInterpreter();
setup?.Invoke(yesNtInterpreter);