mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-09 16:06:08 +02:00
Merge setup parameter into ExecuteAndCapture method with default value
This commit is contained in:
@@ -85,10 +85,7 @@ internal static class YesNtAssert
|
|||||||
return debugEventArgs?.CurrentLine;
|
return debugEventArgs?.CurrentLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List<string> lines, int timeout)
|
private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List<string> lines, int timeout, Action<YesNtInterpreter>? setup = null)
|
||||||
=> ExecuteAndCapture(lines, timeout, setup: null);
|
|
||||||
|
|
||||||
private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List<string> lines, int timeout, Action<YesNtInterpreter>? setup)
|
|
||||||
{
|
{
|
||||||
YesNtInterpreter yesNtInterpreter = new YesNtInterpreter();
|
YesNtInterpreter yesNtInterpreter = new YesNtInterpreter();
|
||||||
setup?.Invoke(yesNtInterpreter);
|
setup?.Invoke(yesNtInterpreter);
|
||||||
|
|||||||
Reference in New Issue
Block a user