Esempio n. 1
0
 public static ForcePerLength MeganewtonsPerCentimeter <T>(this T value) =>
 ForcePerLength.FromMeganewtonsPerCentimeter(Convert.ToDecimal(value));
 public void NumberToMeganewtonsPerCentimeterTest() =>
 Assert.Equal(ForcePerLength.FromMeganewtonsPerCentimeter(2), 2.MeganewtonsPerCentimeter());