using Xunit.Abstractions;

#if XUNIT_CORE_DLL

namespace Xunit.Sdk
#else
namespace Xunit
#endif
{
	/// <summary>
	/// Default implementation of <see cref="ITestOutput"/>.
	/// </summary>
	public class TestOutput : TestMessage, ITestOutput
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="TestOutput"/> class.
		/// </summary>
		public TestOutput(ITest test, string output)
			: base(test)
		{
			Output = output;
		}

		/// <inheritdoc/>
		public string Output { get; private set; }
	}
}