diff --git a/UnitTests/Program.cs b/UnitTests/Program.cs index 58205bcd..de172a6c 100644 --- a/UnitTests/Program.cs +++ b/UnitTests/Program.cs @@ -154,7 +154,7 @@ public static async Task Main(string[] args) RunTest(RtspClientTests); - await RunTestAsync(TestServerAsync).ConfigureAwait(false); + await RunTestAsync(TestServerAsync, nameof(TestServerAsync)).ConfigureAwait(false); } #region Unit Tests @@ -4652,12 +4652,12 @@ private static void RunTest(Action test, int count = 1, bool waitForGoAhead = tr { test(); return Task.CompletedTask; - }, count, waitForGoAhead, test.Method.Name) + }, test.Method.Name, count, waitForGoAhead) .GetAwaiter() .GetResult(); } - private static async Task RunTestAsync(Func test, int count = 1, bool waitForGoAhead = true, string testName = default) + private static async Task RunTestAsync(Func test, string testName = default, int count = 1, bool waitForGoAhead = true) { System.Console.Clear(); Console.WriteLine("About to run test: " + testName ?? test.Method.Name); @@ -4735,7 +4735,7 @@ private static async Task RunTestAsync(Func test, int count = 1, bool wait { case ConsoleKey.W: { - await RunTestAsync(test, 1, false).ConfigureAwait(false); + await RunTestAsync(test, count: 1, waitForGoAhead: false).ConfigureAwait(false); return; } case ConsoleKey.D: