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.FromMicroradiansPerSecond(UnitsNet.QuantityValue)" />
 public static RotationalSpeed MicroradiansPerSecond <T>(this T value) =>
 RotationalSpeed.FromMicroradiansPerSecond(Convert.ToDouble(value));
 public void NumberToMicroradiansPerSecondTest() =>
 Assert.Equal(RotationalSpeed.FromMicroradiansPerSecond(2), 2.MicroradiansPerSecond());
Ejemplo n.º 4
0
 /// <inheritdoc cref="RotationalSpeed.FromMicroradiansPerSecond(double?)"/>
 public static RotationalSpeed?MicroradiansPerSecond(this decimal?value) => RotationalSpeed.FromMicroradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value));
Ejemplo n.º 5
0
 /// <inheritdoc cref="RotationalSpeed.FromMicroradiansPerSecond(double?)"/>
 public static RotationalSpeed?MicroradiansPerSecond(this float?value) => RotationalSpeed.FromMicroradiansPerSecond(value);
Ejemplo n.º 6
0
 /// <inheritdoc cref="RotationalSpeed.FromMicroradiansPerSecond(double)"/>
 public static RotationalSpeed MicroradiansPerSecond(this double value) => RotationalSpeed.FromMicroradiansPerSecond(value);
Ejemplo n.º 7
0
 public static RotationalSpeed?MicroradiansPerSecond <T>(this T?value) where T : struct => RotationalSpeed.FromMicroradiansPerSecond(value == null ? (double?)null : Convert.ToDouble(value.Value));