コード例 #1
0
        public void TestAddBond()
        {
            NInchiStructure structure = new NInchiStructure();

            Assert.AreEqual(0, structure.Bonds.Count);
            structure.Bonds.Add(TestNInchiBond.GetTestBond());
            Assert.AreEqual(1, structure.Bonds.Count);
        }
コード例 #2
0
        public void TestGetBond()
        {
            NInchiStructure structure = new NInchiStructure();
            NInchiBond      bond      = TestNInchiBond.GetTestBond();

            structure.Bonds.Add(bond);
            Assert.AreEqual(bond, structure.Bonds[0]);
        }