mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
24 lines
525 B
C#
24 lines
525 B
C#
using System;
|
|
using Wabbajack.Common;
|
|
using Xunit;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Wabbajack.Test
|
|
{
|
|
public abstract class ATestBase : XunitContextBase
|
|
{
|
|
private IDisposable _unsub;
|
|
|
|
protected ATestBase(ITestOutputHelper output) : base(output)
|
|
{
|
|
_unsub = Utils.LogMessages.Subscribe(f => XunitContext.WriteLine($"{DateTime.Now} - {f}"));
|
|
}
|
|
|
|
public override void Dispose()
|
|
{
|
|
_unsub.Dispose();
|
|
base.Dispose();
|
|
}
|
|
}
|
|
}
|