Files
RobustToolbox/Robust.Packaging.Tests/PackageLoggerNUnit.cs
PJB3005 788e9386fd Split up test project
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.
2025-12-16 01:36:53 +01:00

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}");
}
}