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

28 lines
632 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; }
}
}