29 lines
641 B
C#
29 lines
641 B
C#
using CodexPlugin;
|
|
using NUnit.Framework;
|
|
|
|
namespace CodexTests
|
|
{
|
|
public class AutoBootstrapDistTest : CodexDistTest
|
|
{
|
|
[SetUp]
|
|
public void SetUpBootstrapNode()
|
|
{
|
|
BootstrapNode = AddCodex(s => s.WithName("BOOTSTRAP"));
|
|
}
|
|
|
|
[TearDown]
|
|
public void TearDownBootstrapNode()
|
|
{
|
|
BootstrapNode = null;
|
|
}
|
|
|
|
protected override void OnCodexSetup(ICodexSetup setup)
|
|
{
|
|
if (BootstrapNode != null) setup.WithBootstrapNode(BootstrapNode);
|
|
}
|
|
|
|
protected ICodexNode? BootstrapNode { get; private set; }
|
|
|
|
}
|
|
}
|