public void InvalidAxisKey()
            {
                var model = new PlotModel();

                model.Axes.Add(new LinearAxis());
                model.Series.Add(new LineSeries {
                    XAxisKey = "invalidKey"
                });
                ((IPlotModel)model).Update(true);
                Assert.IsNotNull(model.GetLastUpdateException() as InvalidOperationException);
            }
示例#2
0
        public void D01_InvalidAbsoluteMaxMin()
        {
            var plot = new PlotModel {
                Title = "Simple plot"
            };

            plot.Axes.Add(new LinearAxis {
                AbsoluteMaximum = 0, AbsoluteMinimum = 0
            });
            ((IPlotModel)plot).Update(true);
            Assert.IsNotNull(plot.GetLastUpdateException() as InvalidOperationException);
        }
示例#3
0
 public void D01_InvalidAbsoluteMaxMin()
 {
     var plot = new PlotModel { Title = "Simple plot" };
     plot.Axes.Add(new LinearAxis { AbsoluteMaximum = 0, AbsoluteMinimum = 0 });
     ((IPlotModel)plot).Update(true);
     Assert.IsNotNull(plot.GetLastUpdateException() as InvalidOperationException);
 }
示例#4
0
 public void InvalidAxisKey()
 {
     var model = new PlotModel();
     model.Axes.Add(new LinearAxis());
     model.Series.Add(new LineSeries { XAxisKey = "invalidKey" });
     ((IPlotModel)model).Update(true);
     Assert.IsNotNull(model.GetLastUpdateException() as InvalidOperationException);
 }