Exemplo n.º 1
0
        public void OneYoctometerInMeters()
        {
            _length.RoundToDecimalPlaces(25);

            var oneYocto = new Measurement(SI.Length.Yoctometer, 1M);

            var result = _length.Convert(oneYocto, SI.Length.Meter);

            var target = Convert.ToDecimal(Math.Pow(10, -24));

            result.Should().Be(target);
        }