예제 #1
0
        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));
        }
예제 #2
0
        public void ContainsIsotopesOfYe()
        {
            ChemicalFormula formulaA = new ChemicalFormula("CC{13}H3NO");

            Assert.IsTrue(formulaA.ContainsIsotopesOf(PeriodicTable.GetElement("C")));
        }