Example #1
0
        public void ToStringArrangedTest()
        {
            String        s1       = "CO2 + H2O = C6H12O6 + O2";
            ChemEqnMatrix cm       = new ChemEqnMatrix(s1);
            string        result   = cm.ToStringArranged();
            string        expected = "1 0 -6 0 0 \n2 1 -6 -2 0 \n0 2 -12 0 0 \n1 0 0 0 1 \n";

            Assert.AreEqual(expected, result);
        }