public void ContainsIsotopesOf() { ChemicalFormula formulaA = new ChemicalFormula("O{16}"); Assert.IsTrue(formulaA.ContainsIsotopesOf("O")); Assert.IsTrue(formulaA.ContainsSpecificIsotope("O", 16)); Assert.AreEqual(1, formulaA.CountSpecificIsotopes("O", 16)); }
public void ContainsIsotopesOfYe() { ChemicalFormula formulaA = new ChemicalFormula("CC{13}H3NO"); Assert.IsTrue(formulaA.ContainsIsotopesOf(PeriodicTable.GetElement("C"))); }