mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 08:17:53 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user