Пример #1
0
        public void IEnumerable_GetValueEnueramble_Passes()
        {
            var node = new TreeNodeHelper <int>();

            node.Children.Add(
                node.CreateNode(10
                                , node.CreateNode(100)
                                , node.CreateNode(200)
                                )
                , node.CreateNode(20)
                , node.CreateNode(30
                                  , node.CreateNode(100)
                                  )
                );

            AssertionUtils.AssertEnumerable(
                new TreeNodeHelper <int>[] {
                node,
                node.Children[0], node.Children[0][0], node.Children[0][1],
                node.Children[1],
                node.Children[2], node.Children[2][0]
            }.Select(_n => _n.Value)
                , node.GetValueEnumerable()
                , ""
                );
        }