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); }
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); }