Exemplo n.º 1
0
        public void Aliphatic_carbon()
        {
            IAtom actual = FromSubsetAtoms
                           .FromSubset(AtomImpl.AliphaticSubset.Carbon, 3, 0);
            IAtom expect = new AtomImpl.BracketAtom(Element.Carbon, 1, 0);

            Assert.AreEqual(actual, expect);
        }
Exemplo n.º 2
0
        public void Aromatic_carbon()
        {
            IAtom actual = FromSubsetAtoms
                           .FromSubset(AtomImpl.AromaticSubset.Carbon, 2, 0);
            IAtom expect = new AtomImpl.BracketAtom(-1, Element.Carbon, 1, 0, 0, true);

            Assert.AreEqual(expect, actual);
        }
Exemplo n.º 3
0
        public void BracketAtom()
        {
            // should provide identity of bracket atom
            IAtom input  = new AtomImpl.BracketAtom(Element.Carbon, 1, 0);
            IAtom output = FromSubsetAtoms.FromSubset(input, 0, 0);

            Assert.AreSame(output, input);
        }