Files
RobustToolbox/Robust.UnitTesting/Pool/NUnitTestContextWrap.cs
2026-03-16 00:33:36 +01:00

15 lines
447 B
C#

using System.IO;
using NUnit.Framework;
namespace Robust.UnitTesting.Pool;
/// <summary>
/// Canonical implementation of <see cref="ITestContextLike"/> for usage in actual NUnit tests.
/// </summary>
public sealed class NUnitTestContextWrap(TestContext context, TextWriter writer) : ITestContextLike
{
public readonly TestContext Context = context;
public string FullName => Context.Test.FullName;
public TextWriter Out => writer;
}