public void CheckLinkOutText(int type, string text, string linkTextPart)
        {
            FlowchartLink testObject = new FlowchartLink(type, text);
            FlowchartNode nodeToEdit = new FlowchartNode("TestNode", 0);

            Assert.Equal(linkTextPart, testObject.ReturnModifiedNode(nodeToEdit).LinkOutTextPart);
        }
Beispiel #2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            int           type = 0;
            FlowchartNode node = null;
            string        text = string.Empty;

            DA.GetData(0, ref type);
            DA.GetData(1, ref node);
            DA.GetData(2, ref text);

            FlowchartLink link = new FlowchartLink(type, text);
            FlowchartNode nodeWithModifiedLink = link.ReturnModifiedNode(node);

            DA.SetData(0, nodeWithModifiedLink);
        }