Пример #1
0
 public static LinearPowerDensity MegawattsPerMeter <T>(this T value) =>
 LinearPowerDensity.FromMegawattsPerMeter(Convert.ToDouble(value));
 public void NumberToMegawattsPerMeterTest() =>
 Assert.Equal(LinearPowerDensity.FromMegawattsPerMeter(2), 2.MegawattsPerMeter());