public void TestReadAtomTypeMappings() { OWLAtomTypeMappingReader reader = new OWLAtomTypeMappingReader(new StringReader(OWL_CONTENT)); Assert.IsNotNull(reader); var mappings = reader.ReadAtomTypeMappings(); Assert.IsNotNull(mappings); Assert.AreEqual(2, mappings.Count); }
public void TestReadAtomTypesCDK2Sybyl() { OWLAtomTypeMappingReader reader = new OWLAtomTypeMappingReader(new StringReader(OWL_CONTENT)); Assert.IsNotNull(reader); var mappings = reader.ReadAtomTypeMappings(); Assert.IsNotNull(mappings); Assert.AreEqual(2, mappings.Count); var cdkTypes = mappings.Keys; Assert.IsNotNull(cdkTypes); Assert.IsTrue(cdkTypes.Contains("C.sp3")); Assert.IsTrue(cdkTypes.Contains("X")); Assert.AreEqual("X", mappings["X"]); Assert.AreEqual("C.3", mappings["C.sp3"]); }
public void TestOWLAtomTypeMappingReaderReader() { OWLAtomTypeMappingReader reader = new OWLAtomTypeMappingReader(new StringReader("")); Assert.IsNotNull(reader); }