Skip to content

Commit

Permalink
nameof test.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Nov 26, 2023
1 parent 7582c40 commit 6f007d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UnitTests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Task> test, int count = 1, bool waitForGoAhead = true, string testName = default)
private static async Task RunTestAsync(Func<Task> test, string testName = default, int count = 1, bool waitForGoAhead = true)
{
System.Console.Clear();
Console.WriteLine("About to run test: " + testName ?? test.Method.Name);
Expand Down Expand Up @@ -4735,7 +4735,7 @@ private static async Task RunTestAsync(Func<Task> 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:
Expand Down

0 comments on commit 6f007d8

Please sign in to comment.