public void From_ValueAndUnit_ReturnsQuantityWithSameValueAndUnit() { var quantity00 = ElectricCurrentGradient.From(1, ElectricCurrentGradientUnit.AmperePerSecond); AssertEx.EqualTolerance(1, quantity00.AmperesPerSecond, AmperesPerSecondTolerance); Assert.Equal(ElectricCurrentGradientUnit.AmperePerSecond, quantity00.Unit); }
public void FromValueAndUnit() { AssertEx.EqualTolerance(1, ElectricCurrentGradient.From(1, ElectricCurrentGradientUnit.AmperePerSecond).AmperesPerSecond, AmperesPerSecondTolerance); }