Free cookie consent management tool by TermsFeed Policy Generator

source: branches/CEDMA-Refactoring-Ticket419/HeuristicLab.Visualization.Test/LineChartTests.cs @ 1106

Last change on this file since 1106 was 869, checked in by mstoeger, 15 years ago

Adjustments on LineChart for new interface. #345

File size: 1.0 KB
Line 
1using System.Drawing;
2using NUnit.Framework;
3
4namespace HeuristicLab.Visualization.Test {
5  [TestFixture]
6  public class LineChartTests {
7    [Test]
8    public void TestLineChart() {
9      LineChartTestForm f = new LineChartTestForm();
10
11      IDataRow row1 = new DataRow();
12      IDataRow row2 = new DataRow();
13      IDataRow row3 = new DataRow();
14
15      row1.Color = Color.Red;
16      row2.Color = Color.Green;
17      row3.Color = Color.Blue;
18
19      row1.Thickness = 3;
20      row2.Thickness = 4;
21      row3.Thickness = 5;
22
23      f.Model.AddDataRow(row1);
24      f.Model.AddDataRow(row2);
25      f.Model.AddDataRow(row3);
26
27      row1.AddValue(10);
28      row1.AddValue(5);
29      row1.AddValue(7);
30      row1.AddValue(3);
31      row1.AddValue(10);
32      row1.AddValue(2);
33
34      row2.AddValue(5);
35      row2.AddValue(6);
36      row2.AddValue(5);
37
38      row3.AddValue(2);
39      row3.AddValue(2);
40      row3.AddValue(2);
41      row3.AddValue(2);
42      row3.AddValue(2);
43
44      f.ShowDialog();
45    }
46  }
47}
Note: See TracBrowser for help on using the repository browser.