public void NumberToWattsPerMeterTest() =>
 Assert.Equal(LinearPowerDensity.FromWattsPerMeter(2), 2.WattsPerMeter());
コード例 #2
0
 /// <inheritdoc cref="LinearPowerDensity.FromWattsPerMeter(UnitsNet.QuantityValue)" />
 public static LinearPowerDensity WattsPerMeter <T>(this T value) =>
 LinearPowerDensity.FromWattsPerMeter(Convert.ToDouble(value));