/// <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); }
public void TestAdductFormula_IMolecularFormula() { IAdductFormula mfS = new AdductFormula(Builder.NewMolecularFormula()); Assert.AreEqual(1, mfS.Count); }
public void TestAdductFormula() { IAdductFormula mfS = new AdductFormula(); Assert.IsNotNull(mfS); }