public void RecangularPrismVolume(double a, DistanceUnit ua, double b, DistanceUnit ub, double c, DistanceUnit uc, double e, VolumeUnit eu) { var x = MeasurementMath.RectangleArea(new Measurement <DistanceUnit>(a, ua), new Measurement <DistanceUnit>(b, ub)); var v = MeasurementMath.RecangularPrismVolume(x, new Measurement <DistanceUnit>(c, uc)); v.In(eu).Should().BeApproximately(e, 1e-6); }
public void RectangleArea(double a, DistanceUnit ua, double b, DistanceUnit ub, double e, AreaUnit eu) { var v = MeasurementMath.RectangleArea(new Measurement <DistanceUnit>(a, ua), new Measurement <DistanceUnit>(b, ub)); v.In(eu).Should().BeApproximately(e, 1e-6); }