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