public virtual void TestSetMultiplier_int_Double() { IChemObjectSet <T> som = (IChemObjectSet <T>)NewChemObject(); som.Add(NewContainerObject()); Assert.AreEqual(1.0, som.GetMultiplier(0).Value, 0.00001); som.SetMultiplier(0, 2.0); Assert.AreEqual(2.0, som.GetMultiplier(0).Value, 0.00001); }
public virtual void TestSetMultiplier_IAtomContainer_Double() { IChemObjectSet <T> som = (IChemObjectSet <T>)NewChemObject(); T container = NewContainerObject(); som.Add(container); Assert.AreEqual(1.0, som.GetMultiplier(container).Value, 0.00001); som.SetMultiplier(container, 2.0); Assert.AreEqual(2.0, som.GetMultiplier(container).Value, 0.00001); }