Пример #1
0
        public void SetAndGetNode()
        {
            NodeContext context = new NodeContext();
            INode       node    = new NameNode("foo");

            context.SetNode("foo", node);

            var result = context.GetNode("foo");

            Assert.IsNotNull(result);
            Assert.AreSame(node, result);
        }