Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/08 15:15:32 (16 years ago)
Author:
mstoeger
Message:

Added test for AutoZoom function. It currently doesn't work when data was already available in the model before the view was created. (#345)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.Test/LineChartTests.cs

    r1038 r1040  
    8787      f.ShowDialog();
    8888    }
     89
     90    [Test]
     91    public void TestAutoZoomInConstructor() {
     92      IDataRow row1 = new DataRow();
     93
     94      row1.Color = Color.Red;
     95      row1.Thickness = 3;
     96      row1.Style = DrawingStyle.Solid;
     97
     98      model.AddDataRow(row1);
     99
     100      row1.AddValue(10);
     101      row1.AddValue(5);
     102      row1.AddValue(7);
     103      row1.AddValue(3);
     104      row1.AddValue(10);
     105      row1.AddValue(2);
     106
     107      LineChartTestForm f = new LineChartTestForm(model);
     108      f.ShowDialog();
     109    }
    89110  }
    90111}
Note: See TracChangeset for help on using the changeset viewer.