public void ConversionRoundTrip()
        {
            AreaMomentOfInertia metertothefourth = AreaMomentOfInertia.FromMetersToTheFourth(1);

            AssertEx.EqualTolerance(1, AreaMomentOfInertia.FromCentimetersToTheFourth(metertothefourth.CentimetersToTheFourth).MetersToTheFourth, CentimetersToTheFourthTolerance);
            AssertEx.EqualTolerance(1, AreaMomentOfInertia.FromDecimetersToTheFourth(metertothefourth.DecimetersToTheFourth).MetersToTheFourth, DecimetersToTheFourthTolerance);
            AssertEx.EqualTolerance(1, AreaMomentOfInertia.FromFeetToTheFourth(metertothefourth.FeetToTheFourth).MetersToTheFourth, FeetToTheFourthTolerance);
            AssertEx.EqualTolerance(1, AreaMomentOfInertia.FromInchesToTheFourth(metertothefourth.InchesToTheFourth).MetersToTheFourth, InchesToTheFourthTolerance);
            AssertEx.EqualTolerance(1, AreaMomentOfInertia.FromMetersToTheFourth(metertothefourth.MetersToTheFourth).MetersToTheFourth, MetersToTheFourthTolerance);
            AssertEx.EqualTolerance(1, AreaMomentOfInertia.FromMillimetersToTheFourth(metertothefourth.MillimetersToTheFourth).MetersToTheFourth, MillimetersToTheFourthTolerance);
        }
Esempio n. 2
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromMillimetersToTheFourth(double)"/>
 public static AreaMomentOfInertia MillimetersToTheFourth(this decimal value) => AreaMomentOfInertia.FromMillimetersToTheFourth(Convert.ToDouble(value));
Esempio n. 3
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromMillimetersToTheFourth(double?)"/>
 public static AreaMomentOfInertia?MillimetersToTheFourth(this decimal?value) => AreaMomentOfInertia.FromMillimetersToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value));
Esempio n. 4
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromMillimetersToTheFourth(double?)"/>
 public static AreaMomentOfInertia?MillimetersToTheFourth(this float?value) => AreaMomentOfInertia.FromMillimetersToTheFourth(value);
Esempio n. 5
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromMillimetersToTheFourth(double)"/>
 public static AreaMomentOfInertia MillimetersToTheFourth(this double value) => AreaMomentOfInertia.FromMillimetersToTheFourth(value);
 public void NumberToMillimetersToTheFourthTest() =>
 Assert.Equal(AreaMomentOfInertia.FromMillimetersToTheFourth(2), 2.MillimetersToTheFourth());
Esempio n. 7
0
 public static AreaMomentOfInertia?MillimetersToTheFourth <T>(this T?value) where T : struct => AreaMomentOfInertia.FromMillimetersToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value));
 public static AreaMomentOfInertia MillimetersToTheFourth <T>(this T value) =>
 AreaMomentOfInertia.FromMillimetersToTheFourth(Convert.ToDecimal(value));