示例#1
0
        public void ToString_RootRight()
        {
            RedBlackNode <int> node = new RedBlackNode <int>(50)
            {
                Right = new RedBlackNode <int>(75),
            };

            Assert.AreEqual <string>("50,Red; Left=null; Right=75", node.ToString());
        }
示例#2
0
        public void ToString_RootRight()
        {
            RedBlackNode<int> node = new RedBlackNode<int>(50)
            {
                Right = new RedBlackNode<int>(75),
            };

            Assert.AreEqual<string>("50,Red; Left=null; Right=75", node.ToString());
        }