Test case classes must derive directly or indirectly from Xunit.LongLivedMarshalByRefObject
Test case classes must derive from LongLivedMarshalByRefObject to correctly support both desktop CLR (with app domains) and non-desktop CLR (without app domains).
xUnit.net test case objects must live in the execution app domain, and must be able to live longer than the default 5 minutes.
To fix a violation of this rule, use Xunit.LongLivedMarshalByRefObject
as the base class for your test case class.
using Xunit.Abstractions;
public class xUnit3000 : ITestCase
{
// ...implementation of test case...
}
using Xunit;
using Xunit.Abstractions;
public class xUnit3000 : LongLivedMarshalByRefObject, ITestCase
{
// ...implementation of test case...
}