Exemplo n.º 1
0
 public static LinearPowerDensity MilliwattsPerCentimeter <T>(this T value) =>
 LinearPowerDensity.FromMilliwattsPerCentimeter(Convert.ToDouble(value));
 public void NumberToMilliwattsPerCentimeterTest() =>
 Assert.Equal(LinearPowerDensity.FromMilliwattsPerCentimeter(2), 2.MilliwattsPerCentimeter());