Beispiel #1
0
        public void TestSingleElectron()
        {
            ISingleElectron radical = new SingleElectron();

            Assert.IsNull(radical.Atom);
            Assert.AreEqual(1, radical.ElectronCount.Value);
        }
Beispiel #2
0
        public void TestSingleElectron_IAtom()
        {
            IAtom           atom    = NewChemObject().Builder.NewAtom("N");
            ISingleElectron radical = new SingleElectron(atom);

            Assert.AreEqual(1, radical.ElectronCount.Value);
            Assert.AreEqual(atom, radical.Atom);
            Assert.IsTrue(radical.Contains(atom));
        }