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")); }
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")); }