public void Tree_10_CreateNodeByToken_1220() { var node = TreeGenerator.CreateNode("RJJj", 10); Assert.AreEqual(1220, node.NodeId); Assert.AreEqual("RJJj", node.PathToken); }
public void Tree_10_CreateNodeById_1() { var node = TreeGenerator.CreateNode(1, 10); Assert.AreEqual(1, node.NodeId); Assert.AreEqual("Ra", node.PathToken); }
public void Tree_2_CreateNodeByToken_20() { var node = TreeGenerator.CreateNode("RBBb", 2); Assert.AreEqual(20, node.NodeId); Assert.AreEqual("RBBb", node.PathToken); }
public void Tree_2_Parent() { var node = TreeGenerator.CreateNode("RBBb", 2); var parent = node.Parent; Assert.AreEqual("RBB", parent.PathToken); parent = parent.Parent; Assert.AreEqual("RB", parent.PathToken); parent = parent.Parent; Assert.AreEqual("R", parent.PathToken); parent = parent.Parent; Assert.IsNull(parent); }