public void ToStringReturnsIdParentIdAndChildrenCount() { const int nodeId = 2; const int childId = 3; const int parentId = 1; var idNode = new IdNode(nodeId, new IdNode(parentId)); var childNode = new IdNode(childId, idNode); string toString = idNode.ToString(); Assert.That(toString, Is.EqualTo("Id: 2, ParentId: 1, Children Count: 1")); }
public override string ToString() { return(Identifier.ToString()); }