예제 #1
0
 public void FormatMeasurement_Negative_Inches()
 {
     Assert.AreEqual("-3.2\"", MeasurementUtils.FormatMeasurement(-230400, MsrSysType.Inch));
 }
예제 #2
0
 public void FormatMeasurement_Negative_Centimeter()
 {
     Assert.AreEqual("-9 cm", MeasurementUtils.FormatMeasurement(-255118, MsrSysType.Cm));
 }
예제 #3
0
 public void FormatMeasurement_Positive_Millimeters()
 {
     Assert.AreEqual("101.6 mm", MeasurementUtils.FormatMeasurement(288000, MsrSysType.Mm));
 }
예제 #4
0
 public void FormatMeasurement_Negative_Point()
 {
     Assert.AreEqual("-28.35 pt", MeasurementUtils.FormatMeasurement(-28346, MsrSysType.Point));
 }
예제 #5
0
 public void FormatMeasurement_Positive_Point()
 {
     Assert.AreEqual("2 pt", MeasurementUtils.FormatMeasurement(2000, MsrSysType.Point));
 }