Beispiel #1
0
        public void FindPositionalScalarsTest()
        {
            String        s1 = "CO2 + H2O = C6H12O6 + O2";
            ChemEqnMatrix cm = new ChemEqnMatrix(s1);

            double[] expected = { 1, 0 };
            double[] results  = cm.FindPositionalScalars(1, 0);
            for (int j = 0; j < 2; j++)
            {
                Assert.AreEqual(expected[j], results[j]);
            }
        }