Example #1
0
 public void ToStringTest()
 {
     double value = 10F;
     Angle target = new Angle(value);
     string format = string.Empty;
     IFormatProvider provider = null;
     string expected = value.ToString();
     string actual = target.ToString(format, provider);
     Assert.AreEqual(expected, actual);
 }
Example #2
0
 protected override string CoordToString(double v)
 {
     var a = new Angle(v, AngleUnits.Degrees);
     return a.ToString(AngleUnits.Degrees, this.Precision, this.DegreesFormat);
 }