Пример #1
0
        public void PointToJson()
        {
            var point = new FlotPoint(1, 2);
            string json = point.ToString();

            Assert.AreEqual("[1,2]", json);
        }
Пример #2
0
 public FlotSeries Add(FlotPoint point)
 {
     if (point != null)
     {
         _data.Add(point);
     }
     return(this);
 }
Пример #3
0
 public void CanCreatePoint()
 {
     var point = new FlotPoint(1,2);
     Assert.AreEqual(1, point.X);
     Assert.AreEqual(2, point.Y);
 }