mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
25 lines
679 B
C#
25 lines
679 B
C#
using NUnit.Framework;
|
|
using Robust.Client.Console;
|
|
using Robust.Server.Console;
|
|
using Robust.Shared.Player;
|
|
|
|
namespace Robust.UnitTesting;
|
|
|
|
internal sealed class TestingServerConsoleHost : ServerConsoleHost
|
|
{
|
|
public override void WriteError(ICommonSession? session, string text)
|
|
{
|
|
base.WriteError(session, text);
|
|
Assert.Fail($"Console command encountered an error: {text}");
|
|
}
|
|
}
|
|
|
|
internal sealed class TestingClientConsoleHost : ClientConsoleHost
|
|
{
|
|
public override void WriteError(ICommonSession? session, string text)
|
|
{
|
|
base.WriteError(session, text);
|
|
Assert.Fail($"Console command encountered an error: {text}");
|
|
}
|
|
}
|