Esempio n. 1
0
        public void GetLCMDiagonalTest1()
        {
            String        s  = "CHCl3 + O2 = CO2 + H2O + Cl2";
            ChemEqnMatrix cm = new ChemEqnMatrix(s);

            cm.Balance();
            double expected = 4;
            double result   = cm.GetLCMDiagonal();

            Assert.AreEqual(expected, result);
        }
Esempio n. 2
0
        public void GetLCMDiagonalTest()
        {
            String        s  = "CO2 + H2O = C6H12O6 + O2";
            ChemEqnMatrix cm = new ChemEqnMatrix(s);

            cm.Balance();
            double expected = 6;
            double result   = cm.GetLCMDiagonal();

            Assert.AreEqual(expected, result);
        }