示例#1
0
 public void TwoStyles()
 {
     LineStyles styles = new LineStyles(
                                         new LineStyle[]
                                            {
                                                new LineStyle(3f, 6f, 3f),
                                                new LineStyle(1f, 1f, 0f)
                                             }
                                         );
     Assert.AreEqual(styles.Name, "chls");
     Assert.AreEqual(styles.Data, "3,6,3|1,1,0");
 }
示例#2
0
 public void OneStyles()
 {
     LineStyles styles = new LineStyles(new LineStyle(1f, 6.5456f, 0.21f));
     Assert.AreEqual(styles.Name, "chls");
     Assert.AreEqual(styles.Data, "1,6.5,0.2");
 }