cs-codex-dist-tests/Tests/CodexTests/AutoBootstrapDistTest.cs

29 lines
643 B
C#

using CodexPlugin;
using NUnit.Framework;
namespace CodexTests
{
public class AutoBootstrapDistTest : CodexDistTest
{
[SetUp]
public void SetUpBootstrapNode()
{
BootstrapNode = StartCodex(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; }
}
}