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); }
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); }