public void As_GivenWrongUnitType_ThrowsArgumentException() { IQuantity length = Length.FromMeters(1.2345); Assert.Throws <ArgumentException>(() => length.As(MassUnit.Kilogram)); }
public double IQuantity_As() => lengthIQuantity.As(LengthUnit.Centimeter);