示例#1
0
        public void FindNode_tree_Found()
        {
            var root = new SortedTree <int>(60);

            root.Add(61);
            root.Add(59);

            var result = root.FindNode(59);

            Assert.AreEqual(59, result.Value);
        }
示例#2
0
        public void FindNode_tree_NotFound()
        {
            var root = new SortedTree <int>(60);

            root.Add(61);
            root.Add(59);

            var result = root.FindNode(20);

            Assert.IsNull(result);
        }