示例#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);
 }