コード例 #1
0
 public static ForcePerLength MeganewtonsPerCentimeter <T>(this T value) =>
 ForcePerLength.FromMeganewtonsPerCentimeter(Convert.ToDecimal(value));
コード例 #2
0
 public void NumberToMeganewtonsPerCentimeterTest() =>
 Assert.Equal(ForcePerLength.FromMeganewtonsPerCentimeter(2), 2.MeganewtonsPerCentimeter());