Files
RobustToolbox/Robust.UnitTesting/Pool/NUnitTestContextWrap.cs
T

14 lines
396 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 string FullName => context.Test.FullName;
public TextWriter Out => writer;
}