public void T05_Should_mul_LinearPowerLoss_Length() { var loss = LinearPowerLoss.FromWattPerMeter(5); var length = Length.FromMeter(2); var power = loss * length; Assert.Equal("10W", power.ToString()); }
public void T02_Should_create_LinearPowerLoss() { var ir = new LinearPowerLoss(34, PowerUnits.Watt, LengthUnits.Meter); Assert.Equal("34W/m", ir.ToString()); ir = LinearPowerLoss.FromWattPerMeter(34); Assert.Equal("34W/m", ir.ToString()); }