示例#1
0
        public void TestCode1()
        {
            var elements = HOSECodeAnalyser.GetElements("*C*CC(*C,*C,=C/*C,*&,CC/*&O,=OO,%N),C,,C,/");

            Assert.AreEqual(3, elements.Count);
            Assert.IsTrue(elements.Contains("C"));
            Assert.IsTrue(elements.Contains("O"));
            Assert.IsTrue(elements.Contains("N"));
        }
示例#2
0
        public void TestGetElementsString()
        {
            var elements = HOSECodeAnalyser.GetElements("CCY(CF,C,/C,,&/&)//");

            Assert.AreEqual(3, elements.Count);
            Assert.IsTrue(elements.Contains("C"));
            Assert.IsTrue(elements.Contains("F"));
            Assert.IsTrue(elements.Contains("Br"));
        }