Example #1
0
        public void TestLonePair()
        {
            ILonePair lp = new LonePair();

            Assert.IsNull(lp.Atom);
            Assert.AreEqual(2, lp.ElectronCount.Value);
        }
Example #2
0
        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));
        }