Beispiel #1
0
        public void TestRemoveIsotope_IIsotope()
        {
            MolecularFormulaRange mfRange = new MolecularFormulaRange();
            IIsotope carb = builder.NewIsotope("C");
            IIsotope flu  = builder.NewIsotope("F");
            IIsotope h1   = builder.NewIsotope("H");

            mfRange.AddIsotope(carb, 0, 10);
            mfRange.AddIsotope(flu, 0, 10);
            mfRange.AddIsotope(h1, 0, 10);

            // remove the Fluorine
            mfRange.Remove(flu);

            Assert.AreEqual(2, mfRange.Count);
            Assert.AreEqual(0, mfRange.GetIsotopeCountMin(carb));
            Assert.AreEqual(-1, mfRange.GetIsotopeCountMin(flu));
        }