Beispiel #1
0
        public void ConversionFactorTests()
        {
            Pressure p = Pressure.FromMillibar(1024.24);

            Assert.Equal(p, Pressure.FromHectopascal(1024.24));
            // Conversion factor from mmHg to Pascal
            Assert.Equal((1.0 / 0.00750062) * p.MillimeterOfMercury, p.Pascal, 5);

            // 1 inch = 25.4mm
            Assert.Equal(p.MillimeterOfMercury / 25.4, p.InchOfMercury, 3);
        }