public void AddToRenderChainMultipleNodesTest() { var renderChain = new RenderChain(); root.AddToRenderChain(renderChain); Assert.That(renderChain.Enumerate(), Is.Empty); }
public void AddToRenderChainSingleNodeTest() { var renderChain = new RenderChain(); root = new Node { Id = "Root" }; root.AddToRenderChain(renderChain); Assert.That(renderChain.Enumerate(), Is.Empty); }
public void AddToRenderChainNodeWithSideEffectsTest() { var renderChain = new RenderChain(); root = new Node { Id = "Root" }; var childWithSideEffects = new NodeWithSideEffects(); root.AddNode(childWithSideEffects); root.AddToRenderChain(renderChain); Assert.That(renderChain.Enumerate().Contains(childWithSideEffects)); }