Exemplo n.º 1
0
        public void m_s2___mm_s2()
        {
            converter = new LinearAccelerationConverter("m/s2", "mm/s2");
            double valL = 1;
            double valR = 1_000;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 2
0
        public void m_s2___ft_s2()
        {
            converter = new LinearAccelerationConverter("m/s2", "ft/s2");
            double valL = 1;
            double valR = 3.280839895013;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 3
0
        public void m_s2___in_s2()
        {
            converter = new LinearAccelerationConverter("m/s2", "in/s2");
            double valL = 1;
            double valR = 39.370078740157;

            Assert.AreEqual(valR, converter.LeftToRight(valL));
            Assert.AreEqual(valL, converter.RightToLeft(valR));
        }
Exemplo n.º 4
0
 public void Cleanup()
 {
     converter = null;
 }