Example #1
0
        /// <summary>
        /// Clones this AdductFormula object and its content.
        /// </summary>
        /// <returns> The cloned object</returns>
        public virtual object Clone()
        {
            AdductFormula clone = new AdductFormula();

            foreach (var form in this)
            {
                clone.Add((IMolecularFormula)form.Clone());
            }
            return(clone);
        }
Example #2
0
        public void TestAdductFormula_IMolecularFormula()
        {
            IAdductFormula mfS = new AdductFormula(Builder.NewMolecularFormula());

            Assert.AreEqual(1, mfS.Count);
        }
Example #3
0
        public void TestAdductFormula()
        {
            IAdductFormula mfS = new AdductFormula();

            Assert.IsNotNull(mfS);
        }