Example #1
0
        public void TestAddAtom()
        {
            NInchiStructure structure = new NInchiStructure();

            Assert.AreEqual(0, structure.Atoms.Count);
            structure.Atoms.Add(TestNInchiAtom.GetNewTestAtom());
            Assert.AreEqual(1, structure.Atoms.Count);
        }
Example #2
0
        public void TestGetAtom()
        {
            NInchiStructure structure = new NInchiStructure();
            NInchiAtom      atom      = TestNInchiAtom.GetNewTestAtom();

            structure.Atoms.Add(atom);
            Assert.AreEqual(atom, structure.Atoms[0]);
        }