Exemplo n.º 1
0
        public void pa___kg_cm2()
        {
            converter = new PressureConverter("pa", "kg/cm2");
            double valL = 1;
            double valR = 0.0000101971621298;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 2
0
        public void pa_atm()
        {
            converter = new PressureConverter("pa", "atm");
            double valL = 1;
            double valR = 0.000009869233;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 3
0
        public void pa_mbar()
        {
            converter = new PressureConverter("pa", "mbar");
            double valL = 1;
            double valR = 0.010000000000;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 4
0
        public void pa_pa()
        {
            converter = new PressureConverter("pa", "pa");
            double valL = 1;
            double valR = 1;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 5
0
        public void pa___short_ton_in2()
        {
            converter = new PressureConverter("pa", "short ton/in2");
            double valL = 1;
            double valR = 0.000000072519;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 6
0
        public void pa___long_ton_in2()
        {
            converter = new PressureConverter("pa", "long ton/in2");
            double valL = 1;
            double valR = 0.000000064749;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 7
0
        public void pa___lb_ft2()
        {
            converter = new PressureConverter("pa", "lb/ft2");
            double valL = 1;
            double valR = 0.020885434233;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 8
0
        public void pa___lb_in2()
        {
            converter = new PressureConverter("pa", "lb/in2");
            double valL = 1;
            double valR = 0.000145037738;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }