Ejemplo n.º 1
0
        public void CorrectData(string title, int position, string toString)
        {
            GraphLegend testObject = new GraphLegend(title, position);

            Assert.Equal(title, testObject.Title);
            Assert.Equal(position, testObject.Position);
            Assert.Equal(toString, testObject.ToString());
        }
Ejemplo n.º 2
0
        public void CorrectData(GraphData graphData, GraphLegend graphLegend, string toString)
        {
            GraphElements testObject = new GraphElements(graphData, graphLegend);

            Assert.Equal(graphData, testObject.Data);
            Assert.Equal(graphLegend, testObject.Legend);
            Assert.Equal(toString, testObject.ToString());
        }
Ejemplo n.º 3
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            GraphData   graphData   = null;
            GraphLegend graphLegend = null;

            DA.GetData(0, ref graphData);
            DA.GetData(1, ref graphLegend);

            GraphElements graphElements = new GraphElements(graphData, graphLegend);

            DA.SetData(0, graphElements);
        }
Ejemplo n.º 4
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            string title    = string.Empty;
            int    position = 0;

            DA.GetData(0, ref title);
            DA.GetData(1, ref position);

            GraphLegend legend = new GraphLegend(title, position);

            DA.SetData(0, legend);
        }
Ejemplo n.º 5
0
 public GraphElements(GraphData graphData, GraphLegend graphLegend)
 {
     Data   = graphData;
     Legend = graphLegend;
 }