public void TestSingleElectron() { ISingleElectron radical = new SingleElectron(); Assert.IsNull(radical.Atom); Assert.AreEqual(1, radical.ElectronCount.Value); }
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)); }