public void GetColorNodeByKey_CheckColor() { ITree tree = new RBTree(); for (int i = 0; i < Nodes.Length; i++) { tree.AddNode(Nodes[i]); } Assert.AreEqual(Color.R, tree.GetColorNodeByKey(19)); Assert.AreEqual(Color.B, tree.GetColorNodeByKey(23)); Assert.AreEqual(Color.B, tree.GetColorNodeByKey(20)); Assert.AreEqual(Color.B, tree.GetColorNodeByKey(26)); }