コード例 #1
0
        public void CheckReportCreation(bool direction, List <FlowchartNode> lastNodes, string expected)
        {
            Flowchart testObject = new Flowchart(direction, lastNodes);
            string    actual     = testObject.Create();

            Assert.Equal(expected, actual);
        }
コード例 #2
0
ファイル: FlowchartGH.cs プロジェクト: paireks/Pterodactyl
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            bool direction = true;
            List <FlowchartNode> lastNodes = new List <FlowchartNode>();

            DA.GetData(0, ref direction);
            DA.GetDataList(1, lastNodes);

            Flowchart flowchart  = new Flowchart(direction, lastNodes);
            string    reportPart = flowchart.Create();

            DA.SetData(0, reportPart);
        }