public void ConversionRoundTrip()
        {
            RotationalSpeed radianpersecond = RotationalSpeed.FromRadiansPerSecond(1);

            Assert.AreEqual(1, RotationalSpeed.FromCentiradiansPerSecond(radianpersecond.CentiradiansPerSecond).RadiansPerSecond, CentiradiansPerSecondTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromDeciradiansPerSecond(radianpersecond.DeciradiansPerSecond).RadiansPerSecond, DeciradiansPerSecondTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromMicroradiansPerSecond(radianpersecond.MicroradiansPerSecond).RadiansPerSecond, MicroradiansPerSecondTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromMilliradiansPerSecond(radianpersecond.MilliradiansPerSecond).RadiansPerSecond, MilliradiansPerSecondTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromNanoradiansPerSecond(radianpersecond.NanoradiansPerSecond).RadiansPerSecond, NanoradiansPerSecondTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromRadiansPerSecond(radianpersecond.RadiansPerSecond).RadiansPerSecond, RadiansPerSecondTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromRevolutionsPerMinute(radianpersecond.RevolutionsPerMinute).RadiansPerSecond, RevolutionsPerMinuteTolerance);
            Assert.AreEqual(1, RotationalSpeed.FromRevolutionsPerSecond(radianpersecond.RevolutionsPerSecond).RadiansPerSecond, RevolutionsPerSecondTolerance);
        }
 /// <inheritdoc cref="RotationalSpeed.FromMilliradiansPerSecond(UnitsNet.QuantityValue)" />
 public static RotationalSpeed MilliradiansPerSecond <T>(this T value) =>
 RotationalSpeed.FromMilliradiansPerSecond(Convert.ToDouble(value));
 public void NumberToMilliradiansPerSecondTest() =>
 Assert.Equal(RotationalSpeed.FromMilliradiansPerSecond(2), 2.MilliradiansPerSecond());
Ejemplo n.º 4
0
 /// <inheritdoc cref="RotationalSpeed.FromMilliradiansPerSecond(double?)"/>
 public static RotationalSpeed?MilliradiansPerSecond(this decimal?value) => RotationalSpeed.FromMilliradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value));
Ejemplo n.º 5
0
 /// <inheritdoc cref="RotationalSpeed.FromMilliradiansPerSecond(double?)"/>
 public static RotationalSpeed?MilliradiansPerSecond(this float?value) => RotationalSpeed.FromMilliradiansPerSecond(value);
Ejemplo n.º 6
0
 /// <inheritdoc cref="RotationalSpeed.FromMilliradiansPerSecond(double)"/>
 public static RotationalSpeed MilliradiansPerSecond(this double value) => RotationalSpeed.FromMilliradiansPerSecond(value);
Ejemplo n.º 7
0
 public static RotationalSpeed?MilliradiansPerSecond <T>(this T?value) where T : struct => RotationalSpeed.FromMilliradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value));