public void BaseQuantity_ToUnitSystem() { for (var i = 0; i < BenchmarkConstants.NbUnits; i++) { Consumer.Consume(BaseQuantity.ToUnit(UnitSystems[0])); } }
public void BaseQuantity_ToUnit() { for (var i = 0; i < BenchmarkConstants.NbUnits; i++) { var conversion = BaseUnitConversions[BaseQuantityIndex]; Consumer.Consume(BaseQuantity.ToUnit((LengthUnit)conversion.Value)); } }