mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests. Tests are now split into separate projects as appropriate, and the API side has also been split off.
16 lines
368 B
C#
16 lines
368 B
C#
using Robust.Shared.Log;
|
|
|
|
namespace Robust.Packaging.Tests;
|
|
|
|
/// <summary>
|
|
/// Package logger for writing to NUnit's test context.
|
|
/// </summary>
|
|
/// <param name="writer"></param>
|
|
public sealed class PackageLoggerNUnit(TextWriter writer) : IPackageLogger
|
|
{
|
|
public void Log(LogLevel level, string msg)
|
|
{
|
|
writer.WriteLine($"[{level}] {msg}");
|
|
}
|
|
}
|