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