public void TestContains_IIsotope() { MolecularFormulaRange mfRange = new MolecularFormulaRange(); IIsotope carb = builder.NewIsotope("C"); IIsotope cl = builder.NewIsotope("Cl"); IIsotope h1 = builder.NewIsotope("H"); IIsotope h2 = builder.NewIsotope("H"); h2.ExactMass = 2.0004; mfRange.AddIsotope(carb, 0, 10); mfRange.AddIsotope(h1, 0, 10); Assert.IsTrue(mfRange.Contains(carb)); Assert.IsFalse(mfRange.Contains(cl)); Assert.IsTrue(mfRange.Contains(h1)); Assert.IsFalse(mfRange.Contains(h2)); }