Skip to content

Commit 8b6665d

Browse files
committed
Add TestEnv for environment path diagnostics
Added TestEnv test class with DumpPaths method to log key runtime and environment paths for diagnostics. Also fixed namespace closure formatting in ConcurrentBumpAllocatorTests.cs.
1 parent afc2e86 commit 8b6665d

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Hexa.NET.Utilities.Tests/ConcurrentBumpAllocatorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,4 +509,4 @@ public void Alloc_MaxAlignment_ReturnsAlignedPointer()
509509
allocator.Dispose();
510510
}
511511
}
512-
}
512+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System.Reflection;
2+
3+
namespace Hexa.NET.Utilities.Tests
4+
{
5+
[TestFixture]
6+
public class TestEnv
7+
{
8+
[Test]
9+
public void DumpPaths()
10+
{
11+
Console.WriteLine($"CurrentDirectory: {Environment.CurrentDirectory}");
12+
Console.WriteLine($"BaseDirectory: {AppContext.BaseDirectory}");
13+
Console.WriteLine($"Test Assembly: {Assembly.GetExecutingAssembly().Location}");
14+
Console.WriteLine($"Process Path: {Environment.ProcessPath}");
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)