Skip to content

Commit 1560726

Browse files
committed
Rename test class/method and update path output logic
Renamed TestBootstrap to ATestEnv and RunFirst to DumpPaths. Changed the test to use Assert.Fail with a formatted string to display environment paths in the failure message instead of multiple Assert.Warn calls. Explicitly imported NUnit.Framework.
1 parent b637ff1 commit 1560726

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
using System.Reflection;
2+
using NUnit.Framework;
23

34
namespace Hexa.NET.Utilities.Tests
45
{
56
[TestFixture]
6-
public class TestBootstrap
7+
public class ATestEnv
78
{
89
[Test]
9-
public void RunFirst()
10+
public void DumpPaths()
1011
{
11-
Assert.Warn($"CurrentDirectory: {Environment.CurrentDirectory}");
12-
Assert.Warn($"BaseDirectory: {AppContext.BaseDirectory}");
13-
Assert.Warn($"Test Assembly: {Assembly.GetExecutingAssembly().Location}");
14-
Assert.Warn($"Process Path: {Environment.ProcessPath}");
12+
Assert.Fail(
13+
$"CurrentDirectory: {Environment.CurrentDirectory}\n" +
14+
$"BaseDirectory: {AppContext.BaseDirectory}\n" +
15+
$"Test Assembly: {Assembly.GetExecutingAssembly().Location}\n" +
16+
$"Process Path: {Environment.ProcessPath}");
1517
}
1618
}
1719
}

0 commit comments

Comments
 (0)