Skip to content

Commit d12bf02

Browse files
committed
Add unit test
1 parent 34e84aa commit d12bf02

File tree

1 file changed

+12
-1
lines changed
  • Source/Examples/ExampleLibrary/Issues

1 file changed

+12
-1
lines changed

Source/Examples/ExampleLibrary/Issues/Issues.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
1+
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright file="Issues.cs" company="OxyPlot">
33
// Copyright (c) 2014 OxyPlot contributors
44
// </copyright>
@@ -20,6 +20,17 @@ namespace ExampleLibrary
2020
[Examples("Z1 Issues")]
2121
public class Issues
2222
{
23+
[Example("#1303 Problem with infinity size polyline")]
24+
public static PlotModel InfinitySizePolyline()
25+
{
26+
var model = new PlotModel();
27+
var series = new OxyPlot.Series.LineSeries();
28+
series.Points.Add(new DataPoint(0, 0));
29+
series.Points.Add(new DataPoint(1, -1e40));
30+
model.Series.Add(series);
31+
return model;
32+
}
33+
2334
[Example("#977 RectangleAnnotation Axis Clipping not configurable")]
2435
public static PlotModel RectangleAnnotationAxisClipping()
2536
{

0 commit comments

Comments
 (0)