Пример #1
0
 public static ForcePerLength KilonewtonsPerCentimeter <T>(this T value) =>
 ForcePerLength.FromKilonewtonsPerCentimeter(Convert.ToDecimal(value));
 public void NumberToKilonewtonsPerCentimeterTest() =>
 Assert.Equal(ForcePerLength.FromKilonewtonsPerCentimeter(2), 2.KilonewtonsPerCentimeter());