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);
        }
Exemplo n.º 2
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromInchesToTheFourth(double)"/>
 public static AreaMomentOfInertia InchesToTheFourth(this decimal value) => AreaMomentOfInertia.FromInchesToTheFourth(Convert.ToDouble(value));
Exemplo n.º 3
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromInchesToTheFourth(double?)"/>
 public static AreaMomentOfInertia?InchesToTheFourth(this decimal?value) => AreaMomentOfInertia.FromInchesToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value));
Exemplo n.º 4
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromInchesToTheFourth(double?)"/>
 public static AreaMomentOfInertia?InchesToTheFourth(this float?value) => AreaMomentOfInertia.FromInchesToTheFourth(value);
Exemplo n.º 5
0
 /// <inheritdoc cref="AreaMomentOfInertia.FromInchesToTheFourth(double)"/>
 public static AreaMomentOfInertia InchesToTheFourth(this double value) => AreaMomentOfInertia.FromInchesToTheFourth(value);
 public void NumberToInchesToTheFourthTest() =>
 Assert.Equal(AreaMomentOfInertia.FromInchesToTheFourth(2), 2.InchesToTheFourth());
Exemplo n.º 7
0
 public static AreaMomentOfInertia?InchesToTheFourth <T>(this T?value) where T : struct => AreaMomentOfInertia.FromInchesToTheFourth(value == null ? (double?)null : Convert.ToDouble(value.Value));
 public static AreaMomentOfInertia InchesToTheFourth <T>(this T value) =>
 AreaMomentOfInertia.FromInchesToTheFourth(Convert.ToDecimal(value));