public void TestLonePair() { ILonePair lp = new LonePair(); Assert.IsNull(lp.Atom); Assert.AreEqual(2, lp.ElectronCount.Value); }
public void TestLonePair_IAtom() { IAtom atom = NewChemObject().Builder.NewAtom("N"); ILonePair lp = new LonePair(atom); Assert.AreEqual(2, lp.ElectronCount.Value); Assert.AreEqual(atom, lp.Atom); Assert.IsTrue(lp.Contains(atom)); }