mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-17 11:03:14 +01:00
Better assert failure message
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Tgstation.Server.Host.System.Tests
|
||||
public async Task TestGetUsername()
|
||||
{
|
||||
var username = await features.GetExecutingUsername(global::System.Diagnostics.Process.GetCurrentProcess(), default);
|
||||
Assert.IsTrue(username.Contains(Environment.UserName));
|
||||
Assert.IsTrue(username.Contains(Environment.UserName), $"Exepcted a string containing \"{Environment.UserName}\", got \"{username}\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user