Exemplo n.º 1
0
        public virtual void TestRemoveAllIsotopes()
        {
            IMolecularFormula mf   = Builder.NewMolecularFormula();
            IIsotope          carb = Builder.NewIsotope("C");
            IIsotope          flu  = Builder.NewIsotope("F");
            IIsotope          h1   = Builder.NewIsotope("H");

            mf.Add(carb);
            mf.Add(flu);
            mf.Add(h1, 3);

            // remove the Fluorine
            mf.Clear();

            Assert.AreEqual(0, mf.IsotopesCount);
        }