From d00295516c647320b79cffb7849c37a4f1f3ef07 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 4 Mar 2026 19:59:01 +0100 Subject: [PATCH] Merge setup parameter into ExecuteAndCapture method with default value --- YesNt.Interpreter.Tests/YesNtAssert.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/YesNt.Interpreter.Tests/YesNtAssert.cs b/YesNt.Interpreter.Tests/YesNtAssert.cs index 09e53a5..422f286 100644 --- a/YesNt.Interpreter.Tests/YesNtAssert.cs +++ b/YesNt.Interpreter.Tests/YesNtAssert.cs @@ -85,10 +85,7 @@ internal static class YesNtAssert return debugEventArgs?.CurrentLine; } - private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List lines, int timeout) - => ExecuteAndCapture(lines, timeout, setup: null); - - private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List lines, int timeout, Action? setup) + private static (DebugEventArgs? LastDebugEvent, string DebugOutput) ExecuteAndCapture(List lines, int timeout, Action? setup = null) { YesNtInterpreter yesNtInterpreter = new YesNtInterpreter(); setup?.Invoke(yesNtInterpreter);