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);
        }
Esempio n. 2
0
        public void CorrectData(string text, List <FlowchartNode> previousNodes, int shape, string expectedText)
        {
            FlowchartNode testObject = new FlowchartNode(text, shape);

            Assert.Equal(expectedText, testObject.Text);
            Assert.Equal(shape, testObject.Shape);
        }
        public void CheckReportCreation(string text, List <FlowchartNode> inputNodes, int shape, List <string> flowchartPart)
        {
            FlowchartNode testObject = new FlowchartNode(text, inputNodes, shape);
            List <string> actual     = testObject.FlowchartReportsPart;

            Assert.Equal(flowchartPart, actual);
        }
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            string text  = String.Empty;
            int    shape = 0;

            DA.GetData(0, ref text);
            DA.GetData(1, ref shape);

            FlowchartNode nodeOut = new FlowchartNode(text, shape);

            DA.SetData(0, nodeOut);
        }
Esempio n. 5
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            string text = string.Empty;
            List <FlowchartNode> nodes = new List <FlowchartNode>();
            int shape = 0;

            DA.GetData(0, ref text);
            DA.GetDataList(1, nodes);
            DA.GetData(2, ref shape);

            FlowchartNode nodeOut = new FlowchartNode(text, nodes, shape);

            DA.SetData(0, nodeOut);
        }
Esempio n. 6
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);
        }
Esempio n. 7
0
        public void TestFlowchartNodeToString()
        {
            FlowchartNode testObject = new FlowchartNode("Test", 0);

            Assert.Equal("Flowchart Node: Test", testObject.ToString());
        }