public void CreateAndConvertMetersValidInput() { Assert.AreEqual(1000.0, Meter.ConvertTo(1.0, DynamoUnitType.Millimeters), 0.001); Assert.AreEqual(100.0, Meter.ConvertTo(1.0, DynamoUnitType.Centimeters), 0.001); Assert.AreEqual(1.0, Meter.ConvertTo(1.0, DynamoUnitType.Meters), 0.001); Assert.AreEqual(39.370079, Meter.ConvertTo(1.0, DynamoUnitType.Inches), 0.001); Assert.AreEqual(3.28084, Meter.ConvertTo(1.0, DynamoUnitType.Feet), 0.001); Assert.AreEqual("1.00 m", Meter.AsString(1.0)); }