Exemple #1
0
        public void AddToRenderChainMultipleNodesTest()
        {
            var renderChain = new RenderChain();

            root.AddToRenderChain(renderChain);
            Assert.That(renderChain.Enumerate(), Is.Empty);
        }
Exemple #2
0
        public void AddToRenderChainSingleNodeTest()
        {
            var renderChain = new RenderChain();

            root = new Node {
                Id = "Root"
            };
            root.AddToRenderChain(renderChain);
            Assert.That(renderChain.Enumerate(), Is.Empty);
        }
Exemple #3
0
        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));
        }