Address code review comments

- Changed Task.Wait() to task.GetAwaiter().GetResult() to avoid deadlocks
- Added named constant for killEntireProcessTree parameter
- Added clarifying comment for FakeInput creation
- Added comment explaining relative path construction for Examples directory

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-01 22:11:01 +00:00
parent 98c853ea2b
commit a1cbb42bc1
3 changed files with 7 additions and 2 deletions

View File

@@ -25,6 +25,9 @@ public class ExampleTests
[RequiresDynamicCode ("Calls ExampleDiscovery.DiscoverFromDirectory")]
public static IEnumerable<object []> AllExamples ()
{
// Navigate from test assembly location to repository root, then to Examples directory
// Test output is typically at: Tests/UnitTestsParallelizable/bin/Debug/net8.0/
// Examples are at: Examples/
string examplesDir = Path.GetFullPath (Path.Combine (AppContext.BaseDirectory, "..", "..", "..", "..", "..", "Examples"));
if (!Directory.Exists (examplesDir))