public void CanAddFromXy() { var series = new FlotSeries(null); series.Add(2, 3); Assert.AreEqual(1, series.Data.Count); }
public void CanAddSinglePoint() { var series = new FlotSeries(null); series.Add(new FlotPoint(2, 3)); Assert.AreEqual(1, series.Data.Count); }
public void CanAddEnumerableFuncPoints() { var indexes = new [] {1,2,3,4,5}; var series = new FlotSeries(null); series.Add(indexes, x=> new FlotPoint(x,x)); Assert.AreEqual(5, series.Data.Count); }
public void CanAddEnumerableFuncPoints() { var indexes = new [] { 1, 2, 3, 4, 5 }; var series = new FlotSeries(null); series.Add(indexes, x => new FlotPoint(x, x)); Assert.AreEqual(5, series.Data.Count); }
public void CanAddEnumerablePoints() { var points = new[] { new FlotPoint(1,1), new FlotPoint(2,2), new FlotPoint(3,3) }; var series = new FlotSeries(null); series.Add(points); Assert.AreEqual(3, series.Data.Count); }
public void CanAddEnumerablePoints() { var points = new[] { new FlotPoint(1, 1), new FlotPoint(2, 2), new FlotPoint(3, 3) }; var series = new FlotSeries(null); series.Add(points); Assert.AreEqual(3, series.Data.Count); }