public void Test_IsParent_Self() { GraphNode<string> graphNode = new GraphNode<string>(string.Empty); Assert.That(!graphNode.IsParent(graphNode)); }
public void Test_IsParent_ChildsParent() { GraphNode<string> parentGraphNode = new GraphNode<string>("parent"); GraphNode<string> childGraphNode = new GraphNode<string>("child"); parentGraphNode.AddChild(childGraphNode); Assert.That(childGraphNode.IsParent(parentGraphNode)); }