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()); }
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()); }
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); }
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); }
public GraphElements(GraphData graphData, GraphLegend graphLegend) { Data = graphData; Legend = graphLegend; }